Skip to content

Commit add9fc3

Browse files
Added kivy
1 parent 790d50c commit add9fc3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

kivy/app.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from kivy.app import App
2+
from kivy.uix.widget import Widget
3+
from kivy.uix.button import Button
4+
# from kivy.graphics import Color, Ellipse, Line
5+
from kivy.config import Config
6+
7+
Config.set('graphics', 'width', '600')
8+
Config.set('graphics', 'height', '250')
9+
10+
class MyDesktopApp(App):
11+
def build(self):
12+
root = Widget()
13+
b1 = Button(pos=(0, 0),
14+
# background_color=(226, 13, 13, 1),
15+
size=(100, 50),
16+
text="Click Me")
17+
root.add_widget(b1)
18+
return root
19+
20+
if __name__ == '__main__':
21+
MyDesktopApp().run()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy