{"id":418,"date":"2014-08-05T00:33:54","date_gmt":"2014-08-04T15:33:54","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2014\/08\/05\/python_gui_pyqt\/"},"modified":"2014-08-05T00:33:54","modified_gmt":"2014-08-04T15:33:54","slug":"python_gui_pyqt","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2014\/08\/05\/python_gui_pyqt\/","title":{"rendered":"Python GUI PyQt \u3082\u3063\u3068\u65e9\u304f\u4f7f\u3063\u3066\u304a\u3051\u3070\u3088\u304b\u3063\u305f"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2015\/02\/08\/pyscripter\">PyScripter \u3067\u30d1\u30b9\u306b\u65e5\u672c\u8a9e\u304c\u5165\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7de8\u96c6\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308b\u5bfe\u7b56<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/08\/10\/pyqt\">PyQt\u3067\u6587\u5b57\u6570\u8a08\u6e2c\u30c4\u30fc\u30eb\u3064\u304f\u308b\u3002\u7c21\u5358\u3059\u304e<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2014\/08\/10\/pyqtubuntuhtmlwikihttps:\/\/www.typea.info\/blog\/index.php\/2014\/08\/10\/pyqtubuntuhtmlwiki\">PyQt\u3092Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u30de\u30a4\u30f3\u30c9\u30de\u30c3\u30d7\u3092HTML\u3084Wiki\u306b\u5909\u63db\u3059\u308b\u30c4\u30fc\u30eb\u3092\u3064\u304f\u308b<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2015\/02\/08\/pyqt_guipython\">PyQt \u3092\u4f7f\u3063\u3066 GUI\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u5206\u5272\u30c4\u30fc\u30eb\u3092Python\u3067\u4f5c\u6210\u3059\u308b<\/a><\/li>\n<\/ul>\n<p itemprop=\"name\" class=\"asset-name entry-title\"><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2016\/03\/05\/python_gui_spyder_qt_designer_gui\">Python GUI Spyder \u3068 Qt Designer \u3067 \u304b\u3093\u305f\u3093 GUI \u958b\u767a<\/a><\/p>\n<p>Django \u3067\u52d5\u304b\u3057\u3066\u305f\u3001\u30c1\u30fc\u30e0\u5185\u3067\u5229\u7528\u3059\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u3063\u305f\u306e\u3060\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u6b7b\u3093\u3067\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u5ea6\u7acb\u3066\u308b\u3053\u3068\u306f\u4e8b\u60c5\u304c\u8a31\u3055\u306a\u3044\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u3069\u3046\u3057\u3066\u3082\u4f7f\u3044\u305f\u3044\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3059\u308b\u3002<\/p>\n<p>\u3068\u3044\u3046\u72b6\u6cc1\u3067\u3001\u30ed\u30b8\u30c3\u30af\u3092\u79fb\u690d\u3059\u3079\u304f\u3001Python GUI\u3092\u3055\u308f\u308a\u306b\u3044\u304f\u3002<\/p>\n<h4>PyQt \u3067\u306f\u3058\u3081\u308bGUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/h4>\n<p><a title=\"http:\/\/www.slideshare.net\/RansuiIso\/pyqtgui\" href=\"http:\/\/www.slideshare.net\/RansuiIso\/pyqtgui\">http:\/\/www.slideshare.net\/RansuiIso\/pyqtgui<\/a><\/p>\n<p>\u6982\u8981\u304c\u3088\u304f\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u8aad\u3093\u3069\u3051\u3070\u826f\u3055\u305d\u3046\u3002<\/p>\n<p>\u3002\u3002\u3002\u3067\u306f\u3042\u308b\u3093\u3060\u3051\u308c\u3069\u3082\u3001\u4f5c\u308b&#8221;\u30ce\u30ea&#8221;\u307f\u305f\u3044\u306a\u3068\u3053\u308d\u3067\u5f97\u308b\u3082\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7c21\u5358\u306b\u307e\u3068\u3081\u3066\u304a\u304f\u3002<\/p>\n<h2>PyQt\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h3>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p><a title=\"http:\/\/www.riverbankcomputing.co.uk\/software\/pyqt\/download\" href=\"http:\/\/www.riverbankcomputing.co.uk\/software\/pyqt\/download\">http:\/\/www.riverbankcomputing.co.uk\/software\/pyqt\/download<\/a><\/p>\n<p>\u3053\u3053\u304b\u3089\u3001Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u3001PC\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u5408\u308f\u305b\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<p>Qt4\u7cfb\u3001Qt5\u7cfb\u304c\u3042\u308b\u3088\u3046\u3060\u304c\u3001Qt5\u7cfb\u306f\u3001Python3.x \u306e\u307f\u5bfe\u5fdc\u306e\u3088\u3046\u306a\u306e\u3067\u3001Qt4\u3092\u9078\u629e\u3057\u305f\u3002<\/p>\n<h3><\/h3>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Windows8 x64\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_install01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"pyqt_install01\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"pyqt_install01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_install01_thumb.jpg\" width=\"244\" height=\"190\" \/><\/a><\/p>\n<p>Python\u306e\u30d1\u30b9\u3092\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3059\u3059\u3080\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_install02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"pyqt_install02\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"pyqt_install02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_install02_thumb.jpg\" width=\"244\" height=\"190\" \/><\/a><\/p>\n<p>\u30c7\u30e2\u304c\u76f8\u5f53\u5145\u5b9f\u3057\u3066\u3044\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_sample02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"pyqt_sample02\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"pyqt_sample02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_sample02_thumb.jpg\" width=\"244\" height=\"139\" \/><\/a><\/p>\n<h2>PyScripter \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4e0a\u8a18\u30b9\u30e9\u30a4\u30c9\u306e\u901a\u308a\u3001PyScripter \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u5fc5\u9808\u3067\u306f\u306a\u3044\u304c\u3001\u78ba\u304b\u306b\u6357\u308b\u3002<\/p>\n<p>\u4f7f\u3044\u3084\u3059\u3044\uff01<\/p>\n<p><a title=\"https:\/\/code.google.com\/p\/pyscripter\/\" href=\"https:\/\/code.google.com\/p\/pyscripter\/\">https:\/\/code.google.com\/p\/pyscripter\/<\/a><\/p>\n<h2>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306a\u3069<\/h2>\n<p>\u3067\u3001\u3069\u3093\u306a&#8221;\u30ce\u30ea&#8221; \u3092\u5f97\u305f\u304b\u3068\u3044\u3046\u3068\u3001\u73fe\u72b6\u3001Python \u3067 GUI\u3092\u5229\u7528\u3059\u308b\u81ea\u5206\u306e\u30cb\u30fc\u30ba\u306f\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3057\u304b\u306a\u3044\u306e\u3067\u3001\u305d\u3093\u306a\u306b\u51dd\u3063\u305fUI\u3067\u3042\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n<p>HTML\u3092\u66f8\u304f\u7a0b\u5ea6\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u3001Python GUI\u304c\u304b\u3051\u308b\u3068\u3046\u308c\u3057\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u5b9f\u969b\u3001\u305d\u3093\u306a\u611f\u3058\u3067\u304b\u3051\u3066\u3057\u307e\u3046\uff01<\/p>\n<p>\u4eca\u65e5\u898b\u59cb\u3081\u305f\u3070\u304b\u308a\u306a\u306e\u3067\u3001\u5177\u4f53\u7684\u306a\u3053\u3068\u306f\u4f55\u3082\u308f\u304b\u3089\u306a\u3044\u306e\u3060\u304c\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3068\u30af\u30e9\u30b9\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u9806\u306b\u898b\u3066\u3044\u3051\u3070\u3001\u81ea\u5206\u306e\u3084\u308a\u305f\u3044\u30ec\u30d9\u30eb\u306e\u3053\u3068\u306f\u3001\u5341\u5206\u4e8b\u8db3\u308a\u308b\u3002<\/p>\n<h4>Tutorial<\/h4>\n<p><a title=\"http:\/\/zetcode.com\/tutorials\/pyqt4\/\" href=\"http:\/\/zetcode.com\/tutorials\/pyqt4\/\">http:\/\/zetcode.com\/tutorials\/pyqt4\/<\/a><\/p>\n<p>\u753b\u9762\u30a4\u30e1\u30fc\u30b8\u304c\u8cbc\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3084\u308a\u305f\u3044\u3053\u3068\u304c\u3059\u3050\u308f\u304b\u308b\uff01<\/p>\n<h4>Class Reference<\/h4>\n<p><a title=\"http:\/\/pyqt.sourceforge.net\/Docs\/PyQt4\/classes.html\" href=\"http:\/\/pyqt.sourceforge.net\/Docs\/PyQt4\/classes.html\">http:\/\/pyqt.sourceforge.net\/Docs\/PyQt4\/classes.html<\/a><\/p>\n<p>Qt\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4e00\u89a7\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3059\u3050\u306b\u4f7f\u3044\u305f\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eAPI\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u305f\u3069\u308a\u7740\u3051\u308b\uff01<\/p>\n<h4>\u305d\u306e\u4ed6<\/h4>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/p>\n<p><a title=\"http:\/\/qt-project.org\/doc\/qt-4.8\/\" href=\"http:\/\/qt-project.org\/doc\/qt-4.8\/\">http:\/\/qt-project.org\/doc\/qt-4.8\/<\/a><\/p>\n<p>Wiki<\/p>\n<p><a title=\"https:\/\/wiki.python.org\/moin\/PyQt\" href=\"https:\/\/wiki.python.org\/moin\/PyQt\">https:\/\/wiki.python.org\/moin\/PyQt<\/a><\/p>\n<p>Reference<\/p>\n<p><a title=\"http:\/\/pyqt.sourceforge.net\/Docs\/PyQt4\/\" href=\"http:\/\/pyqt.sourceforge.net\/Docs\/PyQt4\/\">http:\/\/pyqt.sourceforge.net\/Docs\/PyQt4\/<\/a><\/p>\n<p><a title=\"http:\/\/pyqt.sourceforge.net\/Docs\/PyQt5\/\" href=\"http:\/\/pyqt.sourceforge.net\/Docs\/PyQt5\/\">http:\/\/pyqt.sourceforge.net\/Docs\/PyQt5\/<\/a><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u9069\u5f53\u306b\u3001\u66f8\u3044\u3066\u76ee\u7684\u9054\u6210<\/p>\n<pre class=\"prettyprint linenums\"># -*- coding:utf-8 -*-\r\nimport sys\r\nfrom PyQt4 import QtGui, QtCore\r\n\r\nclass PyQtExample(QtGui.QWidget):\r\n\r\n    def __init__(self):\r\n        super(PyQtExample, self).__init__()\r\n        self.initUi()\r\n\r\n    def initUi(self):\r\n        self.cmbMode = QtGui.QComboBox(self)\r\n        self.cmbMode.addItems(('Item1','Item2','Item3','Item4','Item5'))\r\n        self.cmbMode.move(50,50)\r\n\r\n        self.chkTblPrefix = QtGui.QCheckBox(u'CheckBox Title',self)\r\n        self.chkTblPrefix.move(50,80)\r\n\r\n        self.btnExec = QtGui.QPushButton(u'\u5b9f\u884c',self)\r\n        self.btnExec.move(50,110)\r\n        self.btnExec.clicked.connect(self.doExecute)\r\n\r\n        self.btnClear = QtGui.QPushButton(u'\u30af\u30ea\u30a2',self)\r\n        self.btnClear.move(150,110)\r\n        self.btnClear.clicked.connect(self.doClear)\r\n\r\n        self.txtIn = QtGui.QTextEdit(self)\r\n        self.txtIn.move(50,160)\r\n\r\n        self.txtOut = QtGui.QTextEdit(self)\r\n        self.txtOut.move(350,160)\r\n\r\n        self.setGeometry(200, 200, 700, 400)\r\n        self.show()\r\n\r\n    def doExecute(self, value):\r\n        self.txtOut.append(self.txtIn.toHtml())\r\n\r\n    def doClear(self, value):\r\n        self.txtOut.clear()\r\n        self.txtIn.clear()\r\n\r\ndef main():\r\n    app = QtGui.QApplication(sys.argv)\r\n    example = PyQtExample()\r\n    sys.exit(app.exec_())\r\n\r\nif __name__ == '__main__':\r\n    main()<\/pre>\n<p>\u3053\u306e\u7a0b\u5ea6\u306e\u5b89\u3063\u307d\u3044\u753b\u9762\u306a\u3089\u77ac\u9593\u7684\u306b\u51fa\u6765\u308b\uff01<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_sample.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"pyqt_sample\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;\" border=\"0\" alt=\"pyqt_sample\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/PyQt_12E39\/pyqt_sample_thumb.jpg\" width=\"312\" height=\"193\" \/><\/a><\/p>\n<p>\u3082\u3063\u3068\u65e9\u304f\u304b\u3089\u4f7f\u3063\u3068\u3051\u3070\u3088\u304b\u3063\u305f\u3002\u3002\u3002<\/p>\n<p>\n<iframe loading=\"lazy\" width=\"320\" height=\"240\" style=\"height: 240px; width: 120px;\" marginheight=\"0\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=487311344X\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><br \/>\n<iframe loading=\"lazy\" width=\"320\" height=\"240\" style=\"height: 240px; width: 120px;\" marginheight=\"0\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4873113938\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PyScripter \u3067\u30d1\u30b9\u306b\u65e5\u672c\u8a9e\u304c\u5165\u3063\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7de8\u96c6\u3059\u308b\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308b\u5bfe\u7b56 PyQt\u3067\u6587\u5b57\u6570\u8a08\u6e2c\u30c4\u30fc\u30eb\u3064\u304f\u308b\u3002\u7c21\u5358\u3059\u304e PyQt\u3092Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u30de\u30a4\u30f3\u30c9\u30de\u30c3\u30d7\u3092HTML\u3084Wiki\u306b\u5909\u63db\u3059\u308b\u30c4\u30fc\u30eb\u3092\u3064 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[76,20],"tags":[],"class_list":["post-418","post","type-post","status-publish","format-standard","hentry","category-pyqt","category-python"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=418"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/418\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}