{"id":475,"date":"2020-09-29T20:40:18","date_gmt":"2020-09-29T11:40:18","guid":{"rendered":"https:\/\/shibaura-it.tokyo\/it-solution\/?p=475"},"modified":"2020-10-01T21:57:55","modified_gmt":"2020-10-01T12:57:55","slug":"asammdf-gui%e3%81%ae%e5%86%8d%e5%88%a9%e7%94%a8%ef%bc%882%ef%bc%89","status":"publish","type":"post","link":"https:\/\/shibaura-it.tokyo\/it-solution\/asammdf-gui%e3%81%ae%e5%86%8d%e5%88%a9%e7%94%a8%ef%bc%882%ef%bc%89\/","title":{"rendered":"Asammdf GUI\u306e\u518d\u5229\u7528\uff082\uff09"},"content":{"rendered":"<p>Asammdf\u306e\u554f\u984c\u3067\u306f\u306a\u304f\u3001Python\u306e\u4ed5\u69d8\u4e0a\u306e\u5236\u9650\u3068\u3057\u3066\u3001<br \/>\n\u81ea\u4f5c\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u547c\u3073\u51fa\u3057\u5143\u306e\u968e\u5c64\u3088\u308a\u4e0a\u306e\u968e\u5c64\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u3001\u7a4d\u6975\u7684\u306b\u3001Asammdf\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u3092\u8003\u616e\u3059\u308b\u3068\u3001<br \/>\n\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3082\u542b\u3081\u3001\u968e\u5c64\u69cb\u9020\u3092Asammdf\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u6cbf\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u306e\u304c\u671b\u307e\u3057\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u5f93\u3044\u307e\u3057\u3066\u3001Asammdf GUI\u306e\u518d\u5229\u7528(1)\u3067\u7d39\u4ecb\u3057\u305f\u3001\u201dGUI\u30e1\u30a4\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3059\u308b\u201d\u306e\u307f\u3092\u5b9f\u73fe\u3059\u308b\u3001<br \/>\n\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001\u518d\u69cb\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u306e\u968e\u5c64\u69cb\u6210\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/shibaura-it.tokyo\/it-solution\/wp\/wp-content\/uploads\/2020\/09\/dddea8e01ec7591b83c53d5471e60ce1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-476\" src=\"https:\/\/shibaura-it.tokyo\/it-solution\/wp\/wp-content\/uploads\/2020\/09\/dddea8e01ec7591b83c53d5471e60ce1-530x600.jpg\" alt=\"\" width=\"530\" height=\"600\" srcset=\"https:\/\/shibaura-it.tokyo\/it-solution\/wp\/wp-content\/uploads\/2020\/09\/dddea8e01ec7591b83c53d5471e60ce1-530x600.jpg 530w, https:\/\/shibaura-it.tokyo\/it-solution\/wp\/wp-content\/uploads\/2020\/09\/dddea8e01ec7591b83c53d5471e60ce1.jpg 640w\" sizes=\"(max-width: 530px) 100vw, 530px\" \/><\/a><\/p>\n<p>\u00a5GUI_SAMPLE1\u304c\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u00a5GUI_SAMPLE1\u00a5gui\u00a5GUI_Sample.py\u304cGUI\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30e1\u30a4\u30f3\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\n\u00a5GUI_SAMPLE1\u00a5gui\u00a5widgets\u00a5GUI_Main.py\u304cGUI\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30c1\u30f3<br \/>\n\u00a5GUI_SAMPLE1\u00a5gui\u00a5ui\u00a5main_window.py\u304c\u4f5c\u6210\u3057\u305fUI\uff08asammdfgui\u304b\u3089\u306e\u30b3\u30d4\u30fc\uff09<br \/>\n\u00a5GUI_SAMPLE1\u00a5gui\u00a5ui\u00a5resource_rc.py\uff08asammdfgui\u304b\u3089\u306e\u30b3\u30d4\u30fc\uff09<\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u304c\u3001\u30e1\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30e1\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u306e\u968e\u5c64\u3088\u308a\u4e0a\u306e\u968e\u5c64\u3068\u306a\u308b\u00a5gui\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3078\u306e\u53c2\u7167\u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u3001<br \/>\n&#8220;sys.path.append&#8221;\u3092\u7528\u3044\u3066\u3001Python\u74b0\u5883\u306b\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u3066\u307e\u3059\u3002<br \/>\nprint\u6587\u306f\u3001\u3069\u3053\u306e\u968e\u5c64\u304c\u30eb\u30fc\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3055\u308c\u305f\u306e\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u4ed8\u4e0e\u3057\u305f\u3082\u306e\u306a\u306e\u3067\u3001\u306a\u304f\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"lang:python decode:true \" title=\"GUI_Sample.py\">import sys\r\nfrom PyQt5 import QtCore, QtGui, QtWidgets\r\n\r\nimport os\r\nsys.path.append(os.path.abspath(\"..\"))\r\nprint(os.path.abspath(\"..\"))\r\n\r\nfrom GUI_Sample1.gui.widgets.GUI_Main import MainWindow\r\n\r\nif __name__=='__main__':\r\n    app = QtWidgets.QApplication(sys.argv)\r\n    window = MainWindow()\r\n    window.show()\r\n    sys.exit(app.exec_())<\/pre>\n<p>\u3064\u3065\u3044\u3066\u3001\u3053\u3061\u3089\u304c\u00a5gui\u00a5widgets\u306b\u7f6e\u304b\u308c\u305f\u3001&#8221;GUI_Main.py&#8221;\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \" title=\"GUI_Main.py\">import sys\r\nfrom PyQt5 import QtCore, QtGui, QtWidgets\r\nfrom ..ui.main_window import Ui_PyMDFMainWindow\r\n\r\nclass MainWindow(Ui_PyMDFMainWindow, QtWidgets.QMainWindow):\r\n    def __init__(self, files=None, *args, **kwargs):\r\n        super(Ui_PyMDFMainWindow, self).__init__(*args, **kwargs)\r\n        self.setupUi(self)\r\n        self._settings = QtCore.QSettings()\r\n        self._light_palette = self.palette()\r\n<\/pre>\n<p>\u4ee5\u4e0a\u3067\u3001\u81ea\u4f5c\u306e&#8221;GUI_Sapmple.py&#8221;\u304b\u3089\u3001\u81ea\u4f5c\u306e\u201dGUI_Main.py&#8221;\u3092\u547c\u3073\u51fa\u3057\u3001<br \/>\n\u5404\u7a2easammdf\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5229\u7528\u3067\u304d\u308b\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d9\u30fc\u30b9\u304c\u6e96\u5099\u3067\u304d\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u5143\u3088\u308a\u3001\u4e0a\u4f4d\u968e\u5c64\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u3001<br \/>\nPython\u306e\u8a00\u8a9e\u7684\u4ed5\u69d8\u306e\u5236\u9650\u306f\u3001\u7279\u6bb5\u30e1\u30ea\u30c3\u30c8\u306a\u3069\u3082\u7121\u3044\u69d8\u306b\u306f\u601d\u308f\u308c\u308b\u306e\u3067\u3059\u304c\u3001<br \/>\n\u4f55\u304b\u80cc\u666f\u304c\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u306d\uff1f<\/p>\n<p>\u79c1\u306b\u306f\u3001\u5358\u306b\u5384\u4ecb\u306a\u5236\u9650\u306b\u3057\u304b\u601d\u3048\u306a\u3044\u306e\u3067\u3059\u304c&#8230;<\/p>\n<p>\u3053\u308c\u3067\u3001\u3084\u3063\u3068\u6b21\u56de\u304b\u3089\u306f\u3001&#8221;GUI_Main.py&#8221;\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3001<br \/>\nasammdfgui \u306e\u7c21\u6613\u7248\uff08\u6700\u4f4e\u9650\u306e\u6a5f\u80fd\u306e\u307f\u3092\u5b9f\u88c5\u3057\u305f\u3082\u306e\uff09\u306e\u4f5c\u6210\u3092\u9032\u3081\u3066\u3044\u304f\u3053\u3068\u3067\u3001<br \/>\nasammdf\u306e\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Asammdf\u306e\u554f\u984c\u3067\u306f\u306a\u304f\u3001Python\u306e\u4ed5\u69d8\u4e0a\u306e\u5236\u9650\u3068\u3057\u3066\u3001 \u81ea&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":242,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,7],"tags":[],"_links":{"self":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts\/475"}],"collection":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/comments?post=475"}],"version-history":[{"count":3,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts\/475\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/posts\/475\/revisions\/479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/media\/242"}],"wp:attachment":[{"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/media?parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/categories?post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shibaura-it.tokyo\/it-solution\/wp-json\/wp\/v2\/tags?post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}