{"id":70,"date":"2021-06-16T02:11:27","date_gmt":"2021-06-15T17:11:27","guid":{"rendered":"https:\/\/chiguvacation.wordpress.com\/?p=70"},"modified":"2026-04-03T23:11:04","modified_gmt":"2026-04-03T14:11:04","slug":"kivy%e3%81%a7%e7%b0%a1%e5%8d%98gui%ef%bc%88python%ef%bc%89","status":"publish","type":"post","link":"https:\/\/smartlife123.tech\/?p=70","title":{"rendered":"Kivy\u3067\u7c21\u5358GUI\uff08Python\uff09"},"content":{"rendered":"\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u300cKivy\u300d\u3092\u7528\u3044\u3066GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list has-normal-font-size\">\n<li><strong>Hello, World !<\/strong>\u3000\u3092\u8868\u793a\u3057\u3066\u307f\u308b<\/li>\n<\/ul>\n\n\n\n<p>\u307e\u305a\u306f\u304a\u6c7a\u307e\u308a\u306e\u30d5\u30ec\u30fc\u30ba\u304b\u3089\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfrom kivy.app import App\nfrom kivy.uix.label import Label\n\nclass TestApp(App):\n\tdef build(self):\n\t\treturn Label(text=&#039;Hello, World !&#039;)\n\nTestApp().run()\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1026\" height=\"825\" src=\"http:\/\/smartlife123.tech\/wp-content\/uploads\/2021\/06\/kivy_helloworld.png?w=1024\" alt=\"\" class=\"wp-image-75\" \/><figcaption class=\"wp-element-caption\">Hello, World ! \u306e\u5b9f\u884c\u7d50\u679c<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list has-normal-font-size\">\n<li>Kv\u30d5\u30a1\u30a4\u30eb\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u90e8\u5206\u3092\u8a18\u8ff0\u3057\u3066\u307f\u308b<\/li>\n<\/ul>\n\n\n\n<p>\u30dc\u30bf\u30f3\u3084\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3001\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"has-small-font-size\">\u3000\u4ee5\u4e0bPython\u30d5\u30a1\u30a4\u30eb<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfrom kivy.app import App\n\nclass TestApp(App):\n    pass\n\nif __name__ == &#039;__main__&#039;:\n    TestApp().run()\n<\/pre><\/div>\n\n\n<p class=\"has-small-font-size\">\u3000\u4ee5\u4e0bKv\u30d5\u30a1\u30a4\u30eb<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nBoxLayout:\n\n\torientation: &#039;vertical&#039;\n\n\tLabel:\n\t\ttext: &#039;Hello, World !&#039;\n\tButton:\n\t\ttext: &#039;Button&#039;\n\tTextInput:\n\t\ttext: &#039;TextInput&#039;\n\tImage:\n\t\tsource: &#039;~source.png&#039;\n<\/pre><\/div>\n\n\n<p>orientation \u306b\u3066\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u4e26\u3073\u65b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u5782\u76f4\u65b9\u5411\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"has-small-font-size\">\u3000\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"806\" src=\"http:\/\/smartlife123.tech\/wp-content\/uploads\/2021\/06\/kivy_basic.png?w=1017\" alt=\"\" class=\"wp-image-77\" \/><figcaption class=\"wp-element-caption\">\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u7e26\u65b9\u5411\u306b\u4e26\u3093\u3067\u3044\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u4eca\u65e5\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u5ea6\u306f\u30ec\u30c8\u30ed\u30b2\u30fc\u30e0\u3084\u96fb\u5353\u3092\u4f5c\u308a\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-small-font-size\">\u53c2\u8003\uff1a<a href=\"https:\/\/pyky.github.io\/kivy-doc-ja\/guide\/basic.html\">https:\/\/pyky.github.io\/kivy-doc-ja\/guide\/basic.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u300cKivy\u300d\u3092\u7528\u3044\u3066GUI\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u3084\u3063\u3066\u307f\u307e\u3059\u3002 \u307e\u305a\u306f\u304a\u6c7a\u307e\u308a\u306e\u30d5\u30ec\u30fc\u30ba\u304b\u3089\u3002 \u30dc\u30bf\u30f3\u3084\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3001\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 \u3000\u4ee5\u4e0bPython\u30d5\u30a1\u30a4\u30eb \u3000\u4ee5\u4e0bKv\u30d5\u30a1\u30a4\u30eb orientation  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2],"tags":[13,14,15,6],"class_list":["post-70","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2","tag-gui","tag-kivy","tag-python","tag-6"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/smartlife123.tech\/wp-content\/uploads\/2021\/06\/638892d9-0455-4c35-b9bd-20897d0b6470.jpg","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":1,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=\/wp\/v2\/media\/221"}],"wp:attachment":[{"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartlife123.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}