ç»é¢ãã¹ã¯ãã¼ã«ãããæ¹æ³ ä»åã¯ç»é¢ã¹ã¯ãã¼ã«ãä½ã£ã¦ã¿ã¾ããScrollViewï¼ã¦ã§ã¸ããã®ï¼ã¤ï¼ã使ãã¾ãã ããã°ã©ã ã®ã³ã¼ã # ãã«ç»é¢ã解é¤ãã¦ç»é¢ã®å¹ ã¨é«ããè¨å® from kivy.config import Config Config.set('graphics', 'fullscreen', 0) Config.set('graphics', 'width', 320) Config.set('graphics', 'height', 568) Config.set('graphics', 'resizable', 0) from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.widget import Widget class MainScreen(BoxLay
ç»é¢ãã¹ã©ã¤ããããæ¹æ³ ä»åã¯ç»é¢ã®ã¹ã©ã¤ããä½ã£ã¦ã¿ã¾ããCarouselï¼ã¦ã§ã¸ããã®ï¼ã¤ï¼ã使ãã¾ãã Carouselã¨ã¯ãç´è¨³ã§ã¡ãªã¼ã´ã¼ã©ã¦ã³ããå転å¼ã³ã³ãã¤ã¼ã¨ããæå³ã§ããã¹ã©ã¤ãéã§ã¹ã¯ã¤ããã¦æ°´å¹³ã¾ãã¯åç´ã«ç§»åã§ãã¾ãã ã¾ãã¯åºæ¬çãªCarouselãä½ã£ã¦ã¿ã¾ãã ããã°ã©ã ã®ã³ã¼ã from kivy.app import App from kivy.uix.button import Button from kivy.uix.carousel import Carousel class MainApp(App): def build(self): layout = Carousel(direction='right') for i in range(3): button = Button(text='Button ' + str(i)) layout.ad
PyconJP2017ã§ã®ãã¼ã¯ãKivyã«ããã¢ããªã±ã¼ã·ã§ã³éçºã®ããããï¼https://pycon.jp/2017/ja/schedule/presentation/20/ï¼ã®ã¹ã©ã¤ãã§ãã â»æ¬çªã®ã¹ã©ã¤ãã¯Kivyã§ä½æãã¦ãã¾ããããã¯ããã¾ã§ãé å¸ç¨ã®ã¹ã©ã¤ãã§ãRead less
ã¢ããªã±ã¼ã·ã§ã³ã®èµ·åä¸ãOpenGLã³ã³ããã¹ãã失ãããå¯è½æ§ãããã¾ããçºçã®éï¼ OS Xã¾ãã¯Windowsãã©ãããã©ã¼ã ã§ã¦ã£ã³ãã¦ã®ãµã¤ãºãå¤æ´ããã¦ããã¤pygameãã¦ã£window providerã¨ãã¦ä½¿ç¨ãã¦ããå ´åãããã¯SDL 1.2ã«ãããã®ã§ãã SDL 1.2ã®ãã¶ã¤ã³ã§ã¯ã¦ã£ã³ãã¦ãµã¤ãºãå¤æ´ãããã³ã«GLã³ã³ããã¹ããåä½æããå¿ è¦ãããã¾ããããã¯SDL 1.3ã§ä¿®æ£ããã¾ããããpygameã§ã¯ããã©ã«ãã§ã¾ã 使ç¨ã§ãã¾ããã Androidãã¢ããªã±ã¼ã·ã§ã³ãªã½ã¼ã¹ã解æ¾ããã¨ãï¼ã¢ããªã±ã¼ã·ã§ã³ãããã¯ã°ã©ã¦ã³ãã«ãªãã¨AndroidãOpenGLã³ã³ããã¹ããåå©ç¨ãã¦ãªã½ã¼ã¹ãå¥ã®ã¢ããªã±ã¼ã·ã§ã³ã«æä¾ããå¯è½æ§ãããã¾ããã¦ã¼ã¶ã¼ãã¢ããªã±ã¼ã·ã§ã³ã«æ»ãã¨æ°ããä½æãããglã³ã³ããã¹ããã¢ããªã±ã¼ã·ã§ã³ã«æ¸¡ããã¾ãã 1.2.0ããG
ããã®ã¨ããKivyã®ãµã³ãã«ãåããããã½ã¼ã¹ã³ã¼ããèªãã ããã¦ããã®ã§ããã ä»æ§ãã ããªãæ´ç·´ããã¦ãã¦ããæãã§ãããã¢ãã¤ã«ç°å¢ã§ã¯ã¾ã 試ãã¦ããªãã®ã§ãããKivyãããããªç¨éã§ä»å¾ãã£ã¨åºã¾ã£ã¦ããã¨ãããªã¨æãã¾ãã ä»æ¥ã¯ããã¾ã§åå¼·ãããã¨ã®å¾©ç¿ãå ¼ãã¦ãã·ã³ãã«ãªã¢ããªãä½ã£ã¦ã¿ããã¨æãã¾ãã ä»åä½ãã¢ã㪠é»åã§ãä½ãããã¨æã£ãã®ã§ããããã¿ã³ã®æ°ãå¤ãã¦é¢åããã ã£ãã®ã§ãä»åã¯ä¸ã®ã¤ã¡ã¼ã¸ã®ãããªã·ã³ãã«ãªã¿ã¤ãã¼ã¢ããªãä½ããã¨ã«ãã¾ãã +1 minuteãã¿ã³ã§æ®ãæéã60ç§è¿½å ãStart/Stopãã¿ã³ã§ã«ã¦ã³ããã¦ã³ã®éå§ã¨åæ¢ãResetãã¿ã³ã§æ®ãæéã0ã«æ»ãåç´ãªä»æ§ã§ãã ã¢ããªã®ã³ã¼ã ã¢ããªã®ã³ã¼ãå ¨æã¯ä»¥ä¸ã®ã¨ããã§ãã from kivy.config import Config Config.set('graphics
from kivy.app import App class MainApp(App): pass if __name__ == "__main__": MainApp().run() ScrollView: GridLayout: cols:2 size_hint_y: None row_default_height: 200 height: self.minimum_height Button: text: "1" Button: text: "2" Button: text: "3" Button: text: "4" Button: text: "5" Button: text: "6" Button: text: "7" Button: text: "8" Button: text: "9" Button: text: "10" Button: text: "11" Button
from kivy.app import from kivy.core.window import Window class FileDropApp(App): def build(self): Window.bind(on_dropfile == self._on_file_drop) return #èªåã§å®ç¾©ããã¤ãã³ãå¦çã¡ã½ãã def _on_file_drop(self, window, file_path): print(file_path) return if __name__ == '__main__': FileDropApp().run() ãããå©ç¨ãã¦ãã¦ã£ã³ãã¦ãä½æverã以ä¸ã®ããã«ä½ã£ããã¦ã£ã³ãã¦èªä½ã«ããã¡ã¤ã«ãã¹åå¾ã®æ©è½ãã¤ãããã¨ã«ãªãã®ããªããããåå¿è æ丸åºãç¬ from kivy.app import App from kivy.core
ã¯ããã« Kivyã«é¢ãã調ã¹ç©ããã¦ãã¦è¦ã¤ããè¨äºãåãé¢ç½ãã£ãã®ã§ã許å¯ãããã£ã¦ç¿»è¨³ãã¾ããã åæã®èè Roberto Ulloaããã¨ããæ¹ã§ããthat doesn't make any senseâ¦ã¨ããBlogãå ¬éãã¦ãã¦ãä»åã®ç¿»è¨³ã¯ããã«æ¸ããã¦ããè¨äºã®ä¸ã¤ã§ããåKivyã«é¢ãã以ä¸ã®æ¬ãåºçãã¦ããããã§ã Kivy: Interactive Applications in Python Kivy - Interactive Applications and Games in Python Second Edition Kivyã®(ã¨ãããProgrammingã®)ããªãã®çç·´è ã®ããã§ãã åæ: Rotate, Translate, Scale and RelativeLayout in Kivy Rotate, Translate, Scale an
Kivyã¨ã¯ Python ã®GUIã©ã¤ãã©ãªã¼Kivyã¯ãPythonã®GUIã©ã¤ãã©ãªã¼ã®ä¸ã§ã¯æãå¢ãã®ããã©ã¤ãã©ãªã¼ã¨è¨ããã¦ãããæµ·å¤ã§ã¯pyQtãpySideãªã©ã®Qtç³»ã®ããã©ã¤ãã©ãªã¼ãããå¢ããããã¾ãã ç¹å¾´ãç°¡åã«è¿°ã¹ãã¨ä»¥ä¸ã®éãã§ãã Pythonã§GUIãä½æãããã¼ã« Python2/3å¯¾å¿ ãã«ããã©ãããã©ã¼ã ï¼win,Mac,Linux,RaspberryPi.Android,iosï¼ Kv Languageã¨ããUIãè¨è¿°ããã¡ã¿è¨èªããã MITã©ã¤ã»ã³ã¹ ä»åã¯å ¬å¼ãã¥ã¼ããªã¢ã«ã®ãA Simple Paint Appããã¨ãpon gameããæ¡å¼µãããã®ãä½ãã¾ãã â»ä»åã®è¨äºã¯ 2018/04/22ã«è¡ãããæè¡æ¸å ¸ï¼ã§åºåºããæ¬ããã®æç²ã«ãªãã¾ã ãA Simple Paint Appããã®æ¡å¼µãããã® ãpon gameããå®æãã
kivyã§cairoã使ãããã£ãã ãã¡ã¤ã«ãåãåºãã®ã¯å«ã ã£ãã ãã ããã ãã èªåã®ç°å¢ã§ã¯pycairoãã¤ã³ã¹ãã¼ã«ã§ããªãã£ãã®ã§cairocffiãå©ç¨ãã¦ãã¾ãã ç°å¢ Ubuntu 16.04 python 3.6.1 kivy 1.10.0 import cairocffi as cairo import math import io from kivy.config import Config Config.set('graphics', 'width', '300') Config.set('graphics', 'height', '200') from kivy.core.image import Image as CoreImage from kivy.app import App from kivy.uix.widget import Widget fr
Kivyã§ãtextureã使ã£ã¦ç»å表示ããéã«ã ãªãã表示ããã¾ãè¡ããã調ã¹ãããããã¯ã²ã©ã1ãã¨ãªã£ãã®ã§ã ä»å¾ã®ããã«ã¡ã¢ textureã§ã®ç»å表示ã¯ãsourceã使ãããtextureã使ãã (textureã§è¡¨ç¤ºãããã¨ãã¦ããã®ã§å½ããå) æåã®ã½ã¼ã¹(åé¡ãã) Pillow使ã£ãã®ã§ããããªæãã(åè->ãã2) Pillowãã¼ã¿ãtextureã«ããæã®å¤§äºãªç¹ã¯ãä¸ä¸å転ãããå¿ è¦ãããç¹ã¿ããã (ã½ã¼ã¹ã¯ãã»ã¼åè¨äºã¨ä¸ç·) from kivy.app import App from kivy.properties import StringProperty, ObjectProperty from kivy.uix.widget import Widget from kivy.graphics.texture import Texture f
Pythonã®GUIã©ã¤ãã©ãªKivyã§OpenCVã§èªã¿è¾¼ãã ç»åã表示ããæ¹æ³ã§ãã ã¾ãPillowã§ã®è¡¨ç¤ºããæ¹æ³ã«ã¤ãã¦ã説æãã¾ã çµæç»å è£è¶³ OpenCVã§ç»åã表示ããæ¹æ³ã«ã¤ãã¦ã¯@IMUããã®ãã£ã¼ããåèã«ãã¦ãã¡ãã§ã®æ¤è¨¼çµæã追å ãããã®ã«ãªãã¾ãã ããããKivyä¸ã§OpenCVã§èªã¿è¾¼ãã ç»åéãããããï¼ ãã ãã¨ã³ãã£ã¢ã³ã®éããªã®ãä¸ä¸å転ãã¦ãããKivyã«æ¸¡ããã³ã«å¤æãå¿ è¦ãã pic.twitter.com/IDXVwTfGqe â IMU (@imu_prographics) 2017å¹´10æ3æ¥ ä»å使ç¨ããç»åã§ããã±ãããããåãã¾ããã ãã¼ãããå¸èããåãè ãµã³ãã«ã³ã¼ãã«ã¤ã㦠ä»åã®å 容ãGithubã«ããã¾ããã Github:https://github.com/okajun35/kivy_show_opencv_p
Pythonã®GUIã©ã¤ãã©ãªã¯è²ã ããã¾ãã Tk, Qt, GTK, Pyglet, Pygameãªã©ã ãããã¹ããã¢ããªãPythonã§ä½ããã¨æã£ãæã«é¸æåºæ¥ããã®ã¨ãããQtãããããç¡ãä¸ã«ãPythonã¨Qtã§ã¹ããã¢ããªãä½ãã¨ãªãã¨ãªããªãæéã§ãã ããã§æ軽ã«ã¹ããã¢ããªãä½ã£ã¦ãã¾ããã¨ããã©ã¤ãã©ãªãKivyã¨ããã©ã¤ãã©ãªã§ãã Kivyå ¬å¼ãã¼ã ãã¼ã¸ Kivyã¯ã¯ãã¹ãã©ãããã©ã¼ã ãªã®ã§Windowsä¸ã§ä½ã£ããã®ããAndoirdä¸ã§åãã¾ãã ç¹ã«ä»å㯠Windowsä¸ã§éçº Andoirdã¢ããªã®QPythonä¸ã§åä½ç¢ºèª (3. åºæ¥ãã°ã¢ããªã¨ãã¦1ã¤ã«ããã¯ããã) ã¨ãã¦ãããã¨æãã¾ãã QPythonã¯Androidä¸ã§Pythonã使ç¨åºæ¥ãã¢ããªã§ããããã©ã«ãã§KivyãGUIã¨ãã¦å©ç¨ã§ãã¾ãã QPythonãã¼ã ãã¼ã¸
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}