test-kivy-app/kivy_venv/share/kivy-examples/widgets/scatter.py

17 lines
282 B
Python
Raw Normal View History

2024-09-15 12:12:16 +00:00
from kivy.uix.scatter import Scatter
from kivy.app import App
class MyScatter(Scatter):
pass
class ScatterApp(App):
def build(self):
s = MyScatter(size=(400, 400), size_hint=(None, None))
s.top = 500
return s
ScatterApp().run()