{"id":127777,"date":"2024-03-25T03:52:48","date_gmt":"2024-03-24T18:52:48","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/"},"modified":"2024-04-05T17:41:06","modified_gmt":"2024-04-05T08:41:06","slug":"wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/","title":{"rendered":"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9"},"content":{"rendered":"<p>wxPython\u3092\u4f7f\u7528\u3057\u3066GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u306b\u306f\u3001\u6700\u521d\u306bwxPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066wxPython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\uff1a<\/p>\n<pre class=\"post-pre\"><code>pip install wxPython\r\n<\/code><\/pre>\n<p>WxPython\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089\u3001GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u7c21\u5358\u306aWxPython\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> wx\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MyFrame<\/span>(wx.Frame):\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">__init__<\/span>(<span class=\"hljs-params\">self, parent, title<\/span>):\r\nwx.Frame.__init__(self, parent, title=title, size=(<span class=\"hljs-number\">300<\/span>,<span class=\"hljs-number\">200<\/span>))\r\nself.panel = wx.Panel(self)\r\nself.button = wx.Button(self.panel, label=<span class=\"hljs-string\">\"Click me\"<\/span>)\r\nself.button.Bind(wx.EVT_BUTTON, self.on_button_click)\r\nself.label = wx.StaticText(self.panel, label=<span class=\"hljs-string\">\"Hello, wxPython!\"<\/span>, pos=(<span class=\"hljs-number\">50<\/span>,<span class=\"hljs-number\">50<\/span>))\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">on_button_click<\/span>(<span class=\"hljs-params\">self, event<\/span>):\r\nself.label.SetLabel(<span class=\"hljs-string\">\"Button clicked!\"<\/span>)\r\napp = wx.App()\r\nframe = MyFrame(<span class=\"hljs-literal\">None<\/span>, <span class=\"hljs-string\">\"My Application\"<\/span>)\r\nframe.Show()\r\napp.MainLoop()\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30dc\u30bf\u30f3\u3068\u30e9\u30d9\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u308b\u3068\u3001\u30e9\u30d9\u30eb\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u5909\u5316\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u7c21\u6613\u7684\u306aGUI\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001wxPython \u304c\u63d0\u4f9b\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f7f\u7528\u3057\u3066\u72ec\u81ea\u306e GUI \u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002wxPython \u306e\u4f7f\u7528\u65b9\u6cd5\u3068\u6a5f\u80fd\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001wxPython \u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wxPython\u3092\u4f7f\u7528\u3057\u3066GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u306b\u306f\u3001\u6700\u521d\u306bwxPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066wxPython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\uff1a pip ins [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-127777","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9\" \/>\n<meta property=\"og:description\" content=\"wxPython\u3092\u4f7f\u7528\u3057\u3066GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u306b\u306f\u3001\u6700\u521d\u306bwxPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066wxPython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\uff1a pip ins [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-24T18:52:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-05T08:41:06+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/\",\"name\":\"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-24T18:52:48+00:00\",\"dateModified\":\"2024-04-05T08:41:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9\/","og_locale":"ja_JP","og_type":"article","og_title":"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9","og_description":"wxPython\u3092\u4f7f\u7528\u3057\u3066GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u306b\u306f\u3001\u6700\u521d\u306bwxPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066wxPython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\uff1a pip ins [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-24T18:52:48+00:00","article_modified_time":"2024-04-05T08:41:06+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/","name":"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-24T18:52:48+00:00","dateModified":"2024-04-05T08:41:06+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"WxPython\u521d\u5fc3\u8005\u5411\u3051\u306e\u30ac\u30a4\u30c9"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/wxpython%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%81%ae%e3%82%ac%e3%82%a4%e3%83%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/127777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=127777"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/127777\/revisions"}],"predecessor-version":[{"id":322551,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/127777\/revisions\/322551"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=127777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=127777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=127777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}