{"id":725,"date":"2024-05-05T22:31:08","date_gmt":"2024-05-05T13:31:08","guid":{"rendered":"https:\/\/chocottopro.com\/?p=725"},"modified":"2024-05-05T22:31:08","modified_gmt":"2024-05-05T13:31:08","slug":"%e3%80%90%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%80%91kivy-python%e3%81%a7%e5%a7%8b%e3%82%81%e3%82%8b%e3%82%af%e3%83%ad%e3%82%b9%e3%83%97%e3%83%a9%e3%83%83%e3%83%88%e3%83%95%e3%82%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/chocottopro.com\/?p=725","title":{"rendered":"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011Kivy Python\u3067\u59cb\u3081\u308b\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0GUI\u30a2\u30d7\u30ea\u958b\u767a\u5165\u9580"},"content":{"rendered":"\n<p>Python\u3067iOS\u3001Android\u3001Windows\u3001macOS\u3001Linux\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3067\u304d\u308bKivy\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u958b\u767a\u306e\u5229\u70b9\u3092\u6d3b\u304b\u3057\u3001Python\u4e00\u672c\u3067\u52b9\u7387\u7684\u306b\u30a2\u30d7\u30ea\u958b\u767a\u3092\u9032\u3081\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Kivy\u306e\u57fa\u672c\u304b\u3089\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ea\u958b\u767a\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u306b\u5f79\u7acb\u3064\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u307e\u3067\u3001Kivy\u30a2\u30d7\u30ea\u958b\u767a\u306e\u5168\u4f53\u50cf\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3060\u3089\u308f\u304b\u308b\u3053\u3068<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ul class=\"wp-block-list\">\n<li>Kivy\u306e\u6982\u8981\u3068\u7279\u5fb4 <\/li>\n\n\n\n<li>Kivy\u74b0\u5883\u306e\u69cb\u7bc9\u65b9\u6cd5 <\/li>\n\n\n\n<li>\u57fa\u672c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u4f7f\u3044\u65b9 <\/li>\n\n\n\n<li>\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u30a4\u30d9\u30f3\u30c8\u51e6\u7406 <\/li>\n\n\n\n<li>\u96fb\u5353\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u624b\u9806 <\/li>\n\n\n\n<li>Kivy\u30a2\u30d7\u30ea\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3 <\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584\u306e\u30c6\u30af\u30cb\u30c3\u30af <\/li>\n\n\n\n<li>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u306e\u6d3b\u7528\u6cd5<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/c7479301\/public_html\/chocottopro.com\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>116<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/c7479301\/public_html\/chocottopro.com\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>121<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/c7479301\/public_html\/chocottopro.com\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>128<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">Kivy Python\u3068\u306f\uff1f\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0GUI\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u6982\u8981<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-1\">Kivy\u306fPython\u3067iOS\u30fbAndroid\u30fbWindows\u30a2\u30d7\u30ea\u304c\u4f5c\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/a>      <\/li>      <li>        <a href=\"#i-2\">Kivy\u306e\u7279\u5fb4 \u2013 \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3001\u7121\u6599\u3067\u5229\u7528\u53ef\u80fd<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-3\">Python\u3067GUI\u30a2\u30d7\u30ea\u958b\u767a\u3059\u308b\u5229\u70b9<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-4\">Kivy\u74b0\u5883\u306e\u69cb\u7bc9\u624b\u9806 \u2013 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089Hello World\u307e\u3067<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-5\">Kivy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\uff08Windows\u3001Mac\u3001Linux\uff09<\/a>      <\/li>      <li>        <a href=\"#i-6\">Kivy\u8a00\u8a9e\u3068Python\u30b3\u30fc\u30c9\u306e\u57fa\u672c\u69cb\u9020<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-7\">Kivy\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d \u2013 Hello World\u30b5\u30f3\u30d7\u30eb<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-8\">Kivy\u306e\u57fa\u672c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3068\u4f7f\u3044\u65b9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-9\">\u3088\u304f\u4f7f\u3046\u30a6\u30a3\u30b8\u30a7\u30c3\u30c810\u9078\uff08\u30dc\u30bf\u30f3\u3001\u30e9\u30d9\u30eb\u3001\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306a\u3069\uff09<\/a>      <\/li>      <li>        <a href=\"#i-10\">\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u914d\u7f6e\u3068\u30ec\u30a4\u30a2\u30a6\u30c8<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-11\">\u30a4\u30d9\u30f3\u30c8\u306e\u51e6\u7406\u65b9\u6cd5<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-12\">Kivy\u3092\u4f7f\u3063\u305f\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ea\u958b\u767a<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-13\">\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046 \u2013 \u96fb\u5353\u30a2\u30d7\u30ea\u958b\u767a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a>      <\/li>      <li>        <a href=\"#i-14\">Kivy\u30a2\u30d7\u30ea\u306e\u8a2d\u8a08\u30dd\u30a4\u30f3\u30c8 \u2013 MVP\u3001MVVM\u3001Clean\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-15\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306e\u30b3\u30c4<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-16\">Kivy\u306e\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-17\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u7d39\u4ecb<\/a>      <\/li>      <li>        <a href=\"#i-18\">\u304a\u52e7\u3081\u306eKivy\u95a2\u9023\u66f8\u7c4d\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-19\">Kivy\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3068\u6700\u65b0\u60c5\u5831\u306e\u8ffd\u3044\u65b9<\/a>      <\/li>    <\/ul>  <\/li><\/ul>\n      \n    <\/div><\/div><h2 class=\"wp-block-heading\" id=\"i-0\">Kivy Python\u3068\u306f\uff1f\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0GUI\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u6982\u8981<\/h2>\n\n\n\n<p>Kivy\uff08\u30ad\u30d3\u30fc\uff09\u306f\u3001Python\u8a00\u8a9e\u3067Windows\u3001macOS\u3001Linux\u3001iOS\u3001Android\u306a\u3069\u3001\u8907\u6570\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5bfe\u5fdc\u3057\u305fGUI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u30b7\u30f3\u30d7\u30eb\u3067\u76f4\u611f\u7684\u306aPython\u306e\u30b3\u30fc\u30c9\u304b\u3089\u3001\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u8fd1\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u308b\u306e\u304c\u7279\u9577\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-1\">Kivy\u306fPython\u3067iOS\u30fbAndroid\u30fbWindows\u30a2\u30d7\u30ea\u304c\u4f5c\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/h3>\n\n\n\n<p>Kivy\u3092\u4f7f\u3048\u3070\u3001\u5358\u4e00\u306ePython\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304b\u3089\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3068\u30e2\u30d0\u30a4\u30eb\u306e\u4e21\u65b9\u306b\u5bfe\u5fdc\u3057\u305f\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002iOS\u3001Android\u3001Windows\u3001macOS\u3001Linux\u3068\u3044\u3063\u305f\u4e3b\u8981\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u304c\u9ad8\u3044\u306e\u304c\u5927\u304d\u306a\u5229\u70b9\u3067\u3059\u3002\u958b\u767a\u8005\u306f\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u56fa\u6709\u306e\u8a00\u8a9e\u3084\u30c4\u30fc\u30eb\u3092\u6df1\u304f\u5b66\u3076\u5fc5\u8981\u304c\u306a\u304f\u3001Python\u4e00\u672c\u3067\u52b9\u7387\u7684\u306b\u30a2\u30d7\u30ea\u958b\u767a\u3092\u9032\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-2\">Kivy\u306e\u7279\u5fb4 \u2013 \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3001\u7121\u6599\u3067\u5229\u7528\u53ef\u80fd<\/h3>\n\n\n\n<p>Kivy\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u3001MIT\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u4e0b\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u500b\u4eba\u5229\u7528\u3001\u5546\u7528\u5229\u7528\u3092\u554f\u308f\u305a\u3001\u7121\u6599\u3067\u81ea\u7531\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Github\u3067\u516c\u958b\u3055\u308c\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001\u4e16\u754c\u4e2d\u306e\u958b\u767a\u8005\u306b\u3088\u3063\u3066\u65e5\u3005\u6539\u5584\u3055\u308c\u3066\u304a\u308a\u3001\u30d0\u30b0\u4fee\u6b63\u3084\u65b0\u6a5f\u80fd\u8ffd\u52a0\u304c\u6d3b\u767a\u306b\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-3\">Python\u3067GUI\u30a2\u30d7\u30ea\u958b\u767a\u3059\u308b\u5229\u70b9<\/h3>\n\n\n\n<p>Python\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u8aad\u307f\u3084\u3059\u3044\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u3001\u8c4a\u5bcc\u306a\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3001\u5145\u5b9f\u3057\u305f\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30d1\u30c3\u30b1\u30fc\u30b8\u7fa4\u3092\u6301\u3061\u3001\u521d\u5fc3\u8005\u306b\u3082\u7fd2\u5f97\u3057\u3084\u3059\u3044\u8a00\u8a9e\u3067\u3059\u3002\u30c7\u30fc\u30bf\u89e3\u6790\u3084Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306a\u3069\u3001\u5e45\u5e83\u3044\u5206\u91ce\u3067\u6d3b\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u77e5\u898b\u3084\u30ea\u30bd\u30fc\u30b9\u3092GUI\u30a2\u30d7\u30ea\u958b\u767a\u306b\u3082\u6d3b\u304b\u305b\u307e\u3059\u3002Kivy\u3092\u4f7f\u3048\u3070\u3001Python\u306e\u30e1\u30ea\u30c3\u30c8\u3092\u5f15\u304d\u7d99\u304e\u3064\u3064\u3001\u672c\u683c\u7684\u306aUI\u3092\u5099\u3048\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u77ed\u671f\u9593\u3067\u958b\u767a\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001Kivy\u3092\u4f7f\u3063\u305f\u6700\u5c0f\u9650\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.button import Button\n\nclass MyApp(App):\n    def build(self):\n        return Button(text='Hello Kivy!')\n\nif __name__ == '__main__':\n    MyApp().run()<\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001\u300cHello Kivy!\u300d\u3068\u66f8\u304b\u308c\u305f\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u306e\u30b3\u30fc\u30c9\u3067\u3001Windows\u3001macOS\u3001Linux\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u308c\u3066\u3057\u307e\u3046\u306e\u306f\u9a5a\u304d\u3067\u3059\u3002<\/p>\n\n\n\n<p>Kivy\u306f\u3001Python\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0GUI\u30a2\u30d7\u30ea\u958b\u767a\u306e\u5f37\u529b\u306a\u9078\u629e\u80a2\u306e\u3072\u3068\u3064\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002\u521d\u5fc3\u8005\u304b\u3089\u4e0a\u7d1a\u8005\u307e\u3067\u3001\u751f\u7523\u6027\u306e\u9ad8\u3044\u958b\u767a\u30c4\u30fc\u30eb\u3092\u6c42\u3081\u3066\u3044\u308b\u65b9\u306b\u304a\u52e7\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-4\">Kivy\u74b0\u5883\u306e\u69cb\u7bc9\u624b\u9806 \u2013 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089Hello World\u307e\u3067<\/h2>\n\n\n\n<p>Kivy\u958b\u767a\u3092\u59cb\u3081\u308b\u306b\u306f\u3001\u307e\u305aPython\u3068Kivy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001Windows\u3001macOS\u3001Linux\u5404\u74b0\u5883\u3067\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-5\">Kivy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\uff08Windows\u3001Mac\u3001Linux\uff09<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows:\n<ul class=\"wp-block-list\">\n<li>Python\u516c\u5f0f\u30b5\u30a4\u30c8\uff08https:\/\/www.python.org\/downloads\/\uff09\u304b\u3089\u3001\u6700\u65b0\u306ePython\u5b89\u5b9a\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u3001<code>python -m pip install kivy<\/code>\u3092\u5b9f\u884c\u3057\u3066Kivy\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>macOS:\n<ul class=\"wp-block-list\">\n<li>Homebrew\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\uff08https:\/\/brew.sh\/\uff09\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3067<code>brew install pkg-config sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer<\/code>\u3092\u5b9f\u884c\u3057\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>python -m pip install kivy<\/code>\u3092\u5b9f\u884c\u3057\u3066Kivy\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Linux:\n<ul class=\"wp-block-list\">\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u5408\u308f\u305b\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u5fc5\u8981\u306a\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>Ubuntu\/Debian: <code>sudo apt install python3 python3-pip ffpyplayer python3-pygame python3-sdl2<\/code><\/li>\n\n\n\n<li>Fedora: <code>sudo dnf install python3 python3-pip ffpyplayer python3-pygame python3-sdl2<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>python -m pip install kivy<\/code>\u3092\u5b9f\u884c\u3057\u3066Kivy\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-6\">Kivy\u8a00\u8a9e\u3068Python\u30b3\u30fc\u30c9\u306e\u57fa\u672c\u69cb\u9020<\/h3>\n\n\n\n<p>Kivy\u30a2\u30d7\u30ea\u306f\u3001UI\u306e\u69cb\u9020\u3084\u898b\u305f\u76ee\u3092\u5b9a\u7fa9\u3059\u308bKivy\u8a00\u8a9e\uff08.kv\u30d5\u30a1\u30a4\u30eb\uff09\u3068\u3001\u30a2\u30d7\u30ea\u306e\u30ed\u30b8\u30c3\u30af\u3092\u8a18\u8ff0\u3059\u308bPython\u30b3\u30fc\u30c9\u306e2\u3064\u306e\u90e8\u5206\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>Kivy\u8a00\u8a9e\u306f\u5ba3\u8a00\u7684\u306a\u30b9\u30bf\u30a4\u30eb\u3067UI\u3092\u8a18\u8ff0\u3059\u308b\u3082\u306e\u3067\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u968e\u5c64\u69cb\u9020\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u4e00\u65b9\u3001Python\u30b3\u30fc\u30c9\u306f\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3084\u30c7\u30fc\u30bf\u51e6\u7406\u306a\u3069\u3001\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e2\u3064\u306f\u4e92\u3044\u306b\u53c2\u7167\u3057\u5408\u3046\u3053\u3068\u3067\u3001UI\u3068\u30ed\u30b8\u30c3\u30af\u3092\u5206\u96e2\u3057\u3064\u3064\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-7\">Kivy\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u78ba\u8a8d \u2013 Hello World\u30b5\u30f3\u30d7\u30eb<\/h3>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067Kivy\u30a2\u30d7\u30ea\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.label import Label\n\nclass HelloApp(App):\n    def build(self):\n        return Label(text='Hello World!')\n\nif __name__ == '__main__':\n    HelloApp().run()<\/pre>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092<code>hello.py<\/code>\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067<code>python hello.py<\/code>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u201dHello World!\u201d\u3068\u8868\u793a\u3055\u308c\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u73fe\u308c\u308c\u3070\u3001Kivy\u74b0\u5883\u306e\u69cb\u7bc9\u306f\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"796\" src=\"https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.26.10.png\" alt=\"\" class=\"wp-image-727\" srcset=\"https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.26.10.png 858w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.26.10-300x278.png 300w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.26.10-768x713.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\"><\/figure>\n\n\n\n<p>Kivy\u8a00\u8a9e\u3092\u4f7f\u3063\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3082\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<code>hello.py<\/code>\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<code>hello.kv<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Label:\n    text: 'Hello from kv!'<\/pre>\n\n\n\n<p>Python\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.lang import Builder\n\nclass HelloApp(App):\n    def build(self):\n        return Builder.load_file('hello.kv')\n\nHelloApp().run()<\/pre>\n\n\n\n<p>\u518d\u5ea6<code>python hello.py<\/code>\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001kv\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3057\u305fLabel\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067\u3001Kivy\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304c\u7406\u89e3\u3067\u304d\u307e\u3057\u305f\u306d\u3002\u6b21\u306f\u3001\u3044\u3088\u3044\u3088Kivy\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u4f7f\u3063\u305fUI\u958b\u767a\u306b\u9032\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bf\u30b9\u30af\u306b\u9032\u307f\u307e\u3059\u3002\u3069\u306e\u30bf\u30b9\u30af\u3092\u9078\u629e\u3057\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-8\">Kivy\u306e\u57fa\u672c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3068\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>Kivy\u306b\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306eUI\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u69d8\u3005\u306a\u57fa\u672c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3088\u304f\u4f7f\u308f\u308c\u308b\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u7d39\u4ecb\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u65b9\u3092\u5177\u4f53\u7684\u306a\u30b3\u30fc\u30c9\u4f8b\u3092\u4ea4\u3048\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-9\">\u3088\u304f\u4f7f\u3046\u30a6\u30a3\u30b8\u30a7\u30c3\u30c810\u9078\uff08\u30dc\u30bf\u30f3\u3001\u30e9\u30d9\u30eb\u3001\u30c6\u30ad\u30b9\u30c8\u5165\u529b\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306a\u3069\uff09<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Button\uff08\u30dc\u30bf\u30f3\uff09\n<ul class=\"wp-block-list\">\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u30af\u30ea\u30c3\u30af\u3067\u304d\u308b\u30dc\u30bf\u30f3\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\u3002<\/li>\n\n\n\n<li><code>text<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30dc\u30bf\u30f3\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>on_press<\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u30af\u30ea\u30c3\u30af\u6642\u306e\u51e6\u7406\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.button import Button\n\nclass ButtonExample(App):\n    def build(self):\n        button = Button(text='Click me!')\n        button.bind(on_press=self.on_button_press)\n        return button\n\n    def on_button_press(self, instance):\n        print('Button clicked!')\n\nif __name__ == '__main__':\n    ButtonExample().run()<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Label\uff08\u30e9\u30d9\u30eb\uff09\n<ul class=\"wp-block-list\">\n<li>\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\u3002<\/li>\n\n\n\n<li><code>text<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8868\u793a\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>color<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30c6\u30ad\u30b9\u30c8\u306e\u8272\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.label import Label\n\nclass LabelExample(App):\n    def build(self):\n        return Label(text='Hello, Kivy!', color=(0, 0, 1, 1))\n\nif __name__ == '__main__':\n    LabelExample().run()<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>TextInput\uff08\u30c6\u30ad\u30b9\u30c8\u5165\u529b\uff09\n<ul class=\"wp-block-list\">\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u30c6\u30ad\u30b9\u30c8\u3092\u5165\u529b\u3059\u308b\u305f\u3081\u306e\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\u3002<\/li>\n\n\n\n<li><code>text<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u5165\u529b\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>multiline<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u8907\u6570\u884c\u306e\u5165\u529b\u3092\u8a31\u53ef\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.textinput import TextInput\n\nclass TextInputExample(App):\n    def build(self):\n        return TextInput(text='Enter text here', multiline=False)\n\nif __name__ == '__main__':\n    TextInputExample().run()<\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>CheckBox\uff08\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff09\n<ul class=\"wp-block-list\">\n<li>\u30aa\u30f3\u30fb\u30aa\u30d5\u306e\u72b6\u614b\u3092\u6301\u3064\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3067\u3059\u3002<\/li>\n\n\n\n<li><code>active<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u72b6\u614b\u3092\u53d6\u5f97\u30fb\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>on_active<\/code>\u30a4\u30d9\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u30c1\u30a7\u30c3\u30af\u72b6\u614b\u306e\u5909\u66f4\u6642\u306e\u51e6\u7406\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.checkbox import CheckBox\n\nclass CheckBoxExample(App):\n    def build(self):\n        checkbox = CheckBox(active=True)\n        checkbox.bind(active=self.on_checkbox_active)\n        return checkbox\n\n    def on_checkbox_active(self, instance, value):\n        print(f'Checkbox is {\"active\" if value else \"inactive\"}')\n\nif __name__ == '__main__':\n    CheckBoxExample().run()<\/pre>\n\n\n\n<p>\u4ed6\u306b\u3082\u3001Slider\uff08\u30b9\u30e9\u30a4\u30c0\u30fc\uff09\u3001ProgressBar\uff08\u9032\u6357\u30d0\u30fc\uff09\u3001Switch\uff08\u30b9\u30a4\u30c3\u30c1\uff09\u3001Spinner\uff08\u30b9\u30d4\u30ca\u30fc\uff09\u3001Image\uff08\u753b\u50cf\uff09\u306a\u3069\u3001\u69d8\u3005\u306a\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u76ee\u7684\u306b\u5fdc\u3058\u305fUI\u3092\u67d4\u8edf\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-10\">\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u914d\u7f6e\u3068\u30ec\u30a4\u30a2\u30a6\u30c8<\/h3>\n\n\n\n<p>\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u9069\u5207\u306b\u914d\u7f6e\u3059\u308b\u305f\u3081\u306b\u3001Kivy\u3067\u306f\u30ec\u30a4\u30a2\u30a6\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30ec\u30a4\u30a2\u30a6\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306f\u3001\u5b50\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306e\u4f4d\u7f6e\u3068\u30b5\u30a4\u30ba\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3088\u304f\u4f7f\u308f\u308c\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>BoxLayout: \u5b50\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u6c34\u5e73\u307e\u305f\u306f\u5782\u76f4\u306b\u4e26\u3079\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059\u3002<code>orientation<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u65b9\u5411\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.boxlayout import BoxLayout\nfrom kivy.uix.button import Button\n\nclass BoxLayoutExample(App):\n    def build(self):\n        layout = BoxLayout(orientation='vertical')\n        layout.add_widget(Button(text='Button 1'))\n        layout.add_widget(Button(text='Button 2'))\n        layout.add_widget(Button(text='Button 3'))\n        return layout\n\nif __name__ == '__main__':\n    BoxLayoutExample().run()<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>GridLayout: \u5b50\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u30b0\u30ea\u30c3\u30c9\u72b6\u306b\u914d\u7f6e\u3059\u308b\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059\u3002<code>cols<\/code>\u307e\u305f\u306f<code>rows<\/code>\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30b0\u30ea\u30c3\u30c9\u306e\u5217\u6570\u307e\u305f\u306f\u884c\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.gridlayout import GridLayout\nfrom kivy.uix.button import Button\n\nclass GridLayoutExample(App):\n    def build(self):\n        layout = GridLayout(cols=2)\n        layout.add_widget(Button(text='Button 1'))\n        layout.add_widget(Button(text='Button 2'))\n        layout.add_widget(Button(text='Button 3'))\n        layout.add_widget(Button(text='Button 4'))\n        return layout\n\nif __name__ == '__main__':\n    GridLayoutExample().run()<\/pre>\n\n\n\n<p>\u4ed6\u306b\u3082\u3001FloatLayout\u3001StackLayout\u3001AnchorLayout\u3001RelativeLayout\u306a\u3069\u3001\u69d8\u3005\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u3092\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u67d4\u8edf\u306aUI\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-11\">\u30a4\u30d9\u30f3\u30c8\u306e\u51e6\u7406\u65b9\u6cd5<\/h3>\n\n\n\n<p>Kivy\u3067\u306f\u3001\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u767a\u751f\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u306b\u53cd\u5fdc\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u306e\u51e6\u7406\u306b\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.button import Button\n\nclass EventHandlingExample(App):\n    def build(self):\n        button = Button(text='Click me!')\n        button.bind(on_press=self.on_button_press)\n        return button\n\n    def on_button_press(self, instance):\n        print('Button clicked!')\n\nif __name__ == '__main__':\n    EventHandlingExample().run()<\/pre>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001<code>on_press<\/code>\u30a4\u30d9\u30f3\u30c8\u306b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\uff08<code>on_button_press<\/code>\u30e1\u30bd\u30c3\u30c9\uff09\u3092\u30d0\u30a4\u30f3\u30c9\u3057\u3066\u3044\u307e\u3059\u3002\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u308b\u3068\u3001<code>on_button_press<\/code>\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u201dButton clicked!\u201d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ed6\u306b\u3082\u3001<code>on_release<\/code>\uff08\u30dc\u30bf\u30f3\u304c\u96e2\u3055\u308c\u305f\u3068\u304d\uff09\u3001<code>on_touch_down<\/code>\uff08\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u304c\u30bf\u30c3\u30c1\u3055\u308c\u305f\u3068\u304d\uff09\u3001<code>on_touch_move<\/code>\uff08\u30bf\u30c3\u30c1\u4f4d\u7f6e\u304c\u79fb\u52d5\u3057\u305f\u3068\u304d\uff09\u3001<code>on_touch_up<\/code>\uff08\u30bf\u30c3\u30c1\u304c\u7d42\u4e86\u3057\u305f\u3068\u304d\uff09\u306a\u3069\u3001\u69d8\u3005\u306a\u30a4\u30d9\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u304c\u3001Kivy\u306e\u57fa\u672c\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3068\u305d\u306e\u4f7f\u3044\u65b9\u306e\u6982\u8981\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3068\u30ec\u30a4\u30a2\u30a6\u30c8\u3001\u30a4\u30d9\u30f3\u30c8\u51e6\u7406\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u672c\u683c\u7684\u306aGUI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306f\u3001\u3053\u308c\u3089\u306e\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ea\u958b\u767a\u306b\u6311\u6226\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bf\u30b9\u30af\u306b\u9032\u307f\u307e\u3059\u3002\u3069\u306e\u30bf\u30b9\u30af\u3092\u9078\u629e\u3057\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-12\">Kivy\u3092\u4f7f\u3063\u305f\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ea\u958b\u767a<\/h2>\n\n\n\n<p>Kivy\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u7406\u89e3\u3057\u305f\u3089\u3001\u6b21\u306f\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ea\u958b\u767a\u306b\u6311\u6226\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u3001\u96fb\u5353\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3092\u901a\u3057\u3066\u3001Kivy\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u958b\u767a\u306e\u6d41\u308c\u3092\u4f53\u9a13\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-13\">\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046 \u2013 \u96fb\u5353\u30a2\u30d7\u30ea\u958b\u767a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/h3>\n\n\n\n<p>\u96fb\u5353\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5fc5\u8981\u306a\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u9078\u629e\u3057\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8a2d\u8a08\u3059\u308b<\/li>\n\n\n\n<li>\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3057\u3001\u8a08\u7b97\u30ed\u30b8\u30c3\u30af\u3092\u5b9f\u88c5\u3059\u308b<\/li>\n\n\n\n<li>\u8a08\u7b97\u7d50\u679c\u3092\u8868\u793a\u3059\u308b\u30e9\u30d9\u30eb\u3092\u66f4\u65b0\u3059\u308b<\/li>\n\n\n\n<li>\u30a8\u30e9\u30fc\u51e6\u7406\u3084\u5165\u529b\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046<\/li>\n<\/ol>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u96fb\u5353\u30a2\u30d7\u30ea\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from kivy.app import App\nfrom kivy.uix.boxlayout import BoxLayout\nfrom kivy.uix.button import Button\nfrom kivy.uix.textinput import TextInput\n\nclass CalculatorApp(App):\n    def build(self):\n        self.operators = [\"\/\", \"*\", \"+\", \"-\"]\n        self.last_was_operator = None\n        self.last_button = None\n\n        main_layout = BoxLayout(orientation=\"vertical\")\n        self.solution = TextInput(multiline=False, readonly=True, halign=\"right\", font_size=55)\n        main_layout.add_widget(self.solution)\n        buttons = [\n            [\"7\", \"8\", \"9\", \"\/\"],\n            [\"4\", \"5\", \"6\", \"*\"],\n            [\"1\", \"2\", \"3\", \"-\"],\n            [\".\", \"0\", \"C\", \"+\"],\n        ]\n\n        for row in buttons:\n            h_layout = BoxLayout()\n            for label in row:\n                button = Button(\n                    text=label,\n                    pos_hint={\"center_x\": 0.5, \"center_y\": 0.5},\n                )\n                button.bind(on_press=self.on_button_press)\n                h_layout.add_widget(button)\n            main_layout.add_widget(h_layout)\n\n        equals_button = Button(\n            text=\"=\", pos_hint={\"center_x\": 0.5, \"center_y\": 0.5}\n        )\n        equals_button.bind(on_press=self.on_solution)\n        main_layout.add_widget(equals_button)\n\n        return main_layout\n\n    def on_button_press(self, instance):\n        current = self.solution.text\n        button_text = instance.text\n\n        if button_text == \"C\":\n            self.solution.text = \"\"\n        else:\n            if current and (\n                self.last_was_operator and button_text in self.operators):\n                return\n            elif current == \"\" and button_text in self.operators:\n                return\n            else:\n                new_text = current + button_text\n                self.solution.text = new_text\n        self.last_button = button_text\n        self.last_was_operator = self.last_button in self.operators\n\n    def on_solution(self, instance):\n        text = self.solution.text\n        if text:\n            solution = str(eval(self.solution.text))\n            self.solution.text = solution\n\n\nif __name__ == \"__main__\":\n    app = CalculatorApp()\n    app.run()<\/pre>\n\n\n\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001BoxLayout\u3092\u4f7f\u3063\u3066\u30dc\u30bf\u30f3\u3092\u7e26\u6a2a\u306b\u914d\u7f6e\u3057\u3001TextInput\u30a6\u30a3\u30b8\u30a7\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u7d50\u679c\u3092\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3059\u308bon_button_press()\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u30dc\u30bf\u30f3\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u3001\u8a08\u7b97\u5f0f\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u201d=\u201d\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u308b\u3068\u3001on_solution()\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u3001eval()\u95a2\u6570\u3092\u4f7f\u3063\u3066\u8a08\u7b97\u5f0f\u3092\u8a55\u4fa1\u3057\u3001\u7d50\u679c\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"831\" src=\"https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36-1024x831.png\" alt=\"\" class=\"wp-image-726\" srcset=\"https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36-1024x831.png 1024w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36-300x243.png 300w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36-768x623.png 768w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36-1536x1246.png 1536w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36-940x763.png 940w, https:\/\/chocottopro.com\/wp-content\/uploads\/2024\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2024-05-05-22.25.36.png 1824w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n\n\n\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u30d9\u30fc\u30b9\u306b\u3001\u3055\u3089\u306b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001\u30c7\u30b6\u30a4\u30f3\u3092\u6539\u5584\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5b9f\u7528\u7684\u306a\u96fb\u5353\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-14\">Kivy\u30a2\u30d7\u30ea\u306e\u8a2d\u8a08\u30dd\u30a4\u30f3\u30c8 \u2013 MVP\u3001MVVM\u3001Clean\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3<\/h3>\n\n\n\n<p>\u30a2\u30d7\u30ea\u306e\u898f\u6a21\u304c\u5927\u304d\u304f\u306a\u308b\u306b\u3064\u308c\u3001\u30b3\u30fc\u30c9\u306e\u8907\u96d1\u3055\u304c\u5897\u3057\u3001\u4fdd\u5b88\u6027\u304c\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u9069\u5207\u306a\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MVP\uff08Model-View-Presenter\uff09: \u30e2\u30c7\u30eb\u3001\u30d3\u30e5\u30fc\u3001\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u306b\u5206\u96e2\u3057\u3001\u30d3\u30e5\u30fc\u3068\u30ed\u30b8\u30c3\u30af\u3092\u5206\u96e2\u3057\u307e\u3059\u3002\u30d7\u30ec\u30bc\u30f3\u30bf\u30fc\u304c\u30d3\u30e5\u30fc\u3068\u30e2\u30c7\u30eb\u306e\u9593\u306e\u8abf\u6574\u5f79\u3068\u306a\u308a\u3001\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>MVVM\uff08Model-View-ViewModel\uff09: \u30e2\u30c7\u30eb\u3001\u30d3\u30e5\u30fc\u3001\u30d3\u30e5\u30fc\u30e2\u30c7\u30eb\u306b\u5206\u96e2\u3057\u3001\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u30d3\u30e5\u30fc\u3068\u30d3\u30e5\u30fc\u30e2\u30c7\u30eb\u3092\u540c\u671f\u3057\u307e\u3059\u3002\u30d3\u30e5\u30fc\u30e2\u30c7\u30eb\u304c\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3092\u62c5\u5f53\u3057\u3001\u30d3\u30e5\u30fc\u306e\u72b6\u614b\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30af\u30ea\u30fc\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3: \u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3001UI\u30ed\u30b8\u30c3\u30af\u3001\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u3092\u72ec\u7acb\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u306b\u5206\u96e2\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u4e00\u65b9\u5411\u306b\u5236\u9650\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c6\u30b9\u30c8\u3057\u3084\u3059\u304f\u3001\u5909\u66f4\u306b\u5f37\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u518d\u5229\u7528\u6027\u3084\u4fdd\u5b88\u6027\u3092\u9ad8\u3081\u3001\u9577\u671f\u7684\u306b\u904b\u7528\u53ef\u80fd\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-15\">\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306e\u30b3\u30c4<\/h3>\n\n\n\n<p>Kivy\u30a2\u30d7\u30ea\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u4e0d\u8981\u306a\u63cf\u753b\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001canvas\u3084canvas.before\u3092\u4f7f\u7528\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>canvas\u3092\u4f7f\u3063\u3066\u63cf\u753b\u3059\u308b\u3053\u3068\u3067\u3001Kivy\u306e\u63cf\u753b\u30d7\u30ed\u30bb\u30b9\u3092\u6700\u9069\u5316\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Clock\u3092\u4f7f\u3063\u3066\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u3092\u6700\u9069\u5316\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>Clock\u3092\u4f7f\u3063\u3066\u5b9a\u671f\u7684\u306b\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3084\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u51e6\u7406\u3092\u52b9\u7387\u7684\u306b\u884c\u3048\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Builder.load_string()\u3092\u4f7f\u3063\u3066\u3001kv\u30d5\u30a1\u30a4\u30eb\u3092\u30e1\u30e2\u30ea\u4e0a\u3067\u30ed\u30fc\u30c9\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>kv\u30d5\u30a1\u30a4\u30eb\u3092\u30e1\u30e2\u30ea\u4e0a\u3067\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30a3\u30b9\u30afI\/O\u3092\u6e1b\u3089\u3057\u3001\u30a2\u30d7\u30ea\u306e\u8d77\u52d5\u6642\u9593\u3092\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>NumPy\u3084Cython\u3092\u4f7f\u3063\u3066\u3001\u8a08\u7b97\u96c6\u7d04\u7684\u306a\u51e6\u7406\u3092\u9ad8\u901f\u5316\u3059\u308b\n<ul class=\"wp-block-list\">\n<li>NumPy\u3092\u4f7f\u3063\u3066\u914d\u5217\u64cd\u4f5c\u3092\u9ad8\u901f\u5316\u3057\u305f\u308a\u3001Cython\u3092\u4f7f\u3063\u3066Python\u30b3\u30fc\u30c9\u3092C\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001\u8a08\u7b97\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u9069\u6750\u9069\u6240\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u9ad8\u901f\u3067\u5fdc\u7b54\u6027\u306e\u9ad8\u3044Kivy\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3001Kivy\u3092\u4f7f\u3063\u305f\u5b9f\u8df5\u7684\u306a\u30a2\u30d7\u30ea\u958b\u767a\u306e\u6982\u8981\u3067\u3057\u305f\u3002\u3053\u306e\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30a2\u30d7\u30ea\u958b\u767a\u306b\u6311\u6226\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30a4\u30c7\u30a2\u6b21\u7b2c\u3067\u3001\u69d8\u3005\u306a\u9762\u767d\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u306f\u3001\u3055\u3089\u306a\u308bKivy\u306e\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3092\u63a2\u3063\u3066\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bf\u30b9\u30af\u306b\u9032\u307f\u307e\u3059\u3002\u3069\u306e\u30bf\u30b9\u30af\u3092\u9078\u629e\u3057\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-16\">Kivy\u306e\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9<\/h2>\n\n\n\n<p>Kivy\u3092\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u53c2\u7167\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u66f8\u7c4d\u3084\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u6d3b\u7528\u304c\u52b9\u679c\u7684\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001Kivy\u306e\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u306b\u5f79\u7acb\u3064\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-17\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u7d39\u4ecb<\/h3>\n\n\n\n<p>Kivy\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\uff08<a href=\"https:\/\/kivy.org\/\">https:\/\/kivy.org\/<\/a>\uff09\u306b\u306f\u3001\u8c4a\u5bcc\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u521d\u5fc3\u8005\u5411\u3051\u306e\u30af\u30a4\u30c3\u30af\u30b9\u30bf\u30fc\u30c8\u30ac\u30a4\u30c9\u304b\u3089\u3001\u9ad8\u5ea6\u306a\u30c8\u30d4\u30c3\u30af\u307e\u3067\u5e45\u5e83\u304f\u30ab\u30d0\u30fc\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u76ee\u7684\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u8cc7\u6599\u3092\u9078\u3093\u3067\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7279\u306b\u3001API\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08<a href=\"https:\/\/kivy.org\/doc\/stable\/api-index.html\">https:\/\/kivy.org\/doc\/stable\/api-kivy.html<\/a>\uff09\u306f\u3001Kivy\u306e\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u8a73\u7d30\u306a\u8aac\u660e\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u969b\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u307e\u305f\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3084\u30c7\u30e2\u30a2\u30d7\u30ea\uff08<a href=\"https:\/\/kivy.org\/doc\/stable\/examples\/index.html\">https:\/\/kivy.org\/doc\/stable\/examples\/index.html<\/a>\uff09\u3092\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u308b\u3053\u3068\u3067\u3001Kivy\u306e\u6a5f\u80fd\u3084\u4f7f\u3044\u65b9\u3092\u4f53\u9a13\u7684\u306b\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u6d3b\u7528\u3059\u308b\u969b\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002\u6700\u65b0\u306e\u5b89\u5b9a\u7248\u30ea\u30ea\u30fc\u30b9\u306b\u5bfe\u5fdc\u3057\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-18\">\u304a\u52e7\u3081\u306eKivy\u95a2\u9023\u66f8\u7c4d\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7<\/h3>\n\n\n\n<p>Kivy\u306b\u95a2\u3059\u308b\u66f8\u7c4d\u3084\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7\u306f\u3001\u4f53\u7cfb\u7684\u306b\u77e5\u8b58\u3092\u5b66\u3079\u308b\u306e\u3067\u3001\u52b9\u7387\u7684\u306a\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u7279\u306b\u304a\u3059\u3059\u3081\u306e\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u66f8\u7c4d\u300cKivy \u2013 Interactive Applications and Games in Python\u300d\uff08Roberto Ulloa\u8457\uff09: Kivy\u3092\u4f7f\u3063\u305f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30a2\u30d7\u30ea\u3084\u30b2\u30fc\u30e0\u958b\u767a\u3092\u5b66\u3079\u308b\u66f8\u7c4d\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ea4\u3048\u306a\u304c\u3089\u3001Kivy\u306e\u57fa\u672c\u6982\u5ff5\u3084\u5b9f\u8df5\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7\u300cComplete Python Kivy course from Scratch | APKs with Python\u300d\uff08Udemy\uff09: Kivy\u3092\u4f7f\u3063\u305f\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u958b\u767a\u3092\u5b66\u3079\u308b\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7\u3067\u3059\u3002\u52d5\u753b\u306b\u3088\u308b\u89e3\u8aac\u3068\u6f14\u7fd2\u8ab2\u984c\u3092\u901a\u3057\u3066\u3001Kivy\u30a2\u30d7\u30ea\u306e\u958b\u767a\u624b\u6cd5\u3092\u8eab\u306b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.udemy.com\/course\/complete-python-kivy-course-from-scratch-apk-with-python\/\">https:\/\/www.udemy.com\/course\/complete-python-kivy-course-from-scratch-apk-with-python\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001Kivy\u306b\u95a2\u3059\u308b\u77e5\u8b58\u3092\u52b9\u679c\u7684\u306b\u7fd2\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-19\">Kivy\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3068\u6700\u65b0\u60c5\u5831\u306e\u8ffd\u3044\u65b9<\/h3>\n\n\n\n<p>Kivy\u306f\u6d3b\u767a\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3092\u6301\u3063\u3066\u304a\u308a\u3001\u958b\u767a\u8005\u540c\u58eb\u306e\u4ea4\u6d41\u3084\u60c5\u5831\u5171\u6709\u304c\u76db\u3093\u306b\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u53c2\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u6700\u65b0\u306e\u30c8\u30ec\u30f3\u30c9\u3084\u6280\u8853\u60c5\u5831\u3092\u5165\u624b\u3057\u305f\u308a\u3001\u4ed6\u306e\u958b\u767a\u8005\u304b\u3089\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u3082\u3089\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001GitHub\uff08<a href=\"https:\/\/github.com\/kivy\">https:\/\/github.com\/kivy<\/a>\uff09: Kivy\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3084Kivy\u3092\u4f7f\u3063\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3092\u8aad\u3093\u3060\u308a\u3001\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001Kivy\u306e\u958b\u767a\u306b\u8ca2\u732e\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u7a4d\u6975\u7684\u306b\u53c2\u52a0\u3057\u3001\u4ed6\u306e\u958b\u767a\u8005\u3068\u3064\u306a\u304c\u308b\u3053\u3068\u3067\u3001Kivy\u306b\u95a2\u3059\u308b\u77e5\u8b58\u3084\u7d4c\u9a13\u3092\u5171\u6709\u3057\u3001\u3055\u3089\u306a\u308b\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u304c\u3001Kivy\u306e\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u306e\u7d39\u4ecb\u3067\u3057\u305f\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u8d77\u70b9\u306b\u3001\u66f8\u7c4d\u3084\u30aa\u30f3\u30e9\u30a4\u30f3\u8b1b\u5ea7\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3092\u6d3b\u7528\u3057\u306a\u304c\u3089\u3001Kivy\u306e\u5b66\u7fd2\u3092\u9032\u3081\u3066\u3044\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u7686\u3055\u3093\u304c\u3001Kivy\u3092\u4f7f\u3063\u3066\u7d20\u6674\u3089\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3055\u308c\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Happy coding with Kivy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067iOS\u3001Android\u3001Windows\u3001macOS\u3001Linux\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3067\u304d\u308bKivy\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u958b\u767a\u306e\u5229\u70b9\u3092\u6d3b\u304b\u3057\u3001Python\u4e00\u672c\u3067\u52b9\u7387\u7684\u306b\u30a2\u30d7\u30ea\u958b\u767a\u3092\u9032\u3081\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":728,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":{"0":"post-725","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"_links":{"self":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts\/725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=725"}],"version-history":[{"count":1,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts\/725\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts\/725\/revisions\/729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/media\/728"}],"wp:attachment":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}