test-kivy-app/kivy_venv/share/kivy-examples/demo/showcase/data/screens/popups.kv
2024-09-15 15:12:16 +03:00

18 lines
495 B
Plaintext

ShowcaseScreen:
popup: popup.__self__
fullscreen: True
name: 'Popups'
BoxLayout:
id: bl
Popup:
id: popup
title: "Hello World"
on_parent:
if self.parent == bl: self.parent.remove_widget(self)
Button:
text: 'press to dismiss'
on_release: popup.dismiss()
Button:
text: 'press to show Popup'
on_release: root.popup.open()