{"id":1201,"date":"2018-09-09T00:02:54","date_gmt":"2018-09-08T15:02:54","guid":{"rendered":"https:\/\/python-introduction.com\/?p=1201"},"modified":"2018-09-10T15:23:55","modified_gmt":"2018-09-10T06:23:55","slug":"tkinter%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=1201","title":{"rendered":"tkinter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u5834\u5408\u306b<br \/>\n\u7528\u610f\u3059\u3079\u304d\u3082\u306e\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=1191\" target=\"blank\">Python\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u306b\u306f\u4f55\u3092\u7528\u610f\u3059\u308c\u3070\u3044\u3044\uff1f<\/a><\/p>\n<p>\u3068\u3053\u308d\u3067\u3001Python\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u306a\u3089<br \/>\ntkinter\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306ftkinter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>\u3010Python\u5165\u9580\u3011tkinter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-932\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/anacondanavi823.jpg\" alt=\"AnacondaNavigator\" width=\"620\" height=\"327\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/anacondanavi823.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/anacondanavi823-300x158.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>tkinter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3067\u3059\u304c<br \/>\n\u307e\u305a\u3001Anaconda\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=305\" target=\"blank\">Anaconda\u3092windows7\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<p>\u6b21\u306bAnaconda\u306b\u6a19\u6e96\u88c5\u5099\u3055\u308c\u3066\u3044\u308bJupyter notebook\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u6765\u305f\u3089\u3001\u3042\u3068\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>Jupyternotebook\u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c1\r\nimport tkinter as tk<\/pre>\n<p>\u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>#\u4f8b\u984c1\u306f\u66f8\u304b\u306a\u304f\u3066\u3088\u3044\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1205\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/09\/tkinker904.jpg\" alt=\"tkinter \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\" width=\"620\" height=\"196\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/09\/tkinker904.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/09\/tkinker904-300x95.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u305f\u3089\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u5b9f\u884c\u306f\u300eRun\u300f\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308c\u3070OK\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3067tkinter\u306f\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<h2>\u3010Python\u5165\u9580\u3011tkinter\u3067\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u3066\u307f\u3088\u3046<\/h2>\n<p>tkinter\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u304c\u5b8c\u4e86\u3057\u305f\u3089<br \/>\n\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u4f5c\u6210\u306e\u7b2c\u4e00\u6b69\u3068\u306a\u308b\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f8b\u984c2\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\u4f8b\u984c2\r\n\r\na = tk.Tk()\r\na.title(&quot;\u3053\u3053\u3067\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u540d\u79f0\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002&quot;) \r\na.geometry(&quot;500x250&quot;) \r\na.mainloop()<\/pre>\n<p>\u307e\u305a\u3001<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">a = tk.Tk()<\/pre>\n<p>\u3067\u3059\u304c\u3001\u5909\u6570a\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4ee3\u5165\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<p>\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u306b\u3064\u3044\u3066\u306f<br \/>\n\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=416\" target=\"blank\">\u3010Python\u5165\u9580\u3011\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/a><\/p>\n<p>\u305d\u308c\u304b\u3089<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">a.title(&quot;\u3053\u3053\u3067\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u540d\u79f0\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002&quot;) <\/pre>\n<p>title\u3092\u4f7f\u3046\u3053\u3068\u3067\u5909\u6570a\u306b\u5165\u3063\u3066\u3044\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30bf\u30a4\u30c8\u30eb\u3092<br \/>\n\u6c7a\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u300e\u3053\u3053\u3067\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u540d\u79f0\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002\u300f<br \/>\n\u3068\u3044\u3046\u540d\u79f0\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">a.geometry(&quot;500x250&quot;) <\/pre>\n<p>geometry\u306b\u3088\u3063\u3066\u5909\u6570a\u306b\u5165\u3063\u3066\u3044\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f500\u00d7250\u3068\u3044\u3046\u5927\u304d\u3055\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b5\u30a4\u30ba\u306f&#8221;&#8221;\uff08\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u304f\u304f\u3063\u3066\u3044\u307e\u3059\u3088\u3046\u306b<br \/>\n\u6570\u5b57\u3067\u306f\u306a\u304f\u3066\u6587\u5b57\u5217\u6271\u3044\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6700\u5f8c\u306b<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">a.mainloop()<\/pre>\n<p>mainloop( )\u30e1\u30bd\u30c3\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067<br \/>\n\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1207\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/09\/windouhyouji906.jpg\" alt=\"\u30a6\u30a3\u30f3\u30c9\u30a6\" width=\"507\" height=\"280\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/09\/windouhyouji906.jpg 507w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/09\/windouhyouji906-300x166.jpg 300w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30b7\u30eb\u30d0\u30fc\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u30bf\u30a4\u30c8\u30eb\u304c\u300e\u3053\u3053\u3067\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u540d\u79f0\u304c\u8a18\u8f09\u3055\u308c\u307e\u3059\u3002\u300f<br \/>\n\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u3053\u308c\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u7528\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u7acb\u3061\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u306ftkinter\u3067\u30dc\u30bf\u30f3\u3092\u4f5c\u6210\u3057<br \/>\n\u914d\u7f6e\u3057\u3066\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3063\u307d\u304f\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u7d9a\u304d\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u524d\u56de\u306e\u8a18\u4e8b\u3067tkinter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u30a4\u30f3\u30dd\u30fc\u30c8\uff09\u3057\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u307e\u3060\u524d\u56de\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u21d2tkinter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3055\u3066\u3001\u4eca\u56de\u306ftkinter\u3092\u5229\u7528\u3057\u3066\u524d\u56de\u306e\u8a18\u4e8b\u3067\u4f5c\u6210...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=1210\">tkinter\u3067\u30dc\u30bf\u30f3\u3092\u4f5c\u6210\u3057\u914d\u7f6e\u3057\u3066\u307f\u3088\u3046<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n","protected":false},"excerpt":{"rendered":"\u524d\u56de\u306e\u8a18\u4e8b\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u5834\u5408\u306b \u7528\u610f\u3059\u3079\u304d\u3082\u306e\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002 \u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u21d2Python\u3067\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u306b\u306f\u4f55\u3092\u7528\u610f\u3059\u308c\u3070\u3044\u3044\uff1f \u3068\u3053\u308d\u3067\u3001Python\u3067\u30c7\u30b9\u30af\u30c8\u30c3 [&hellip;]","protected":false},"author":1,"featured_media":1105,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[123],"tags":[125,4],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1201"}],"collection":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1201"}],"version-history":[{"count":8,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1201\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1201\/revisions\/1235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/1105"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}