Skip to content

Commit b742592

Browse files
committed
examples:showcase add the missing popup.kv
1 parent c24d02d commit b742592

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ShowcaseScreen:
2+
popup: popup
3+
fullscreen: True
4+
name: 'Popups'
5+
BoxLayout:
6+
id: bl
7+
Popup:
8+
id: popup
9+
title: "Hello World"
10+
on_parent:
11+
if self.parent == bl: self.parent.remove_widget(self)
12+
Button:
13+
text: 'press to dismiss'
14+
on_release: popup.dismiss()
15+
Button:
16+
text: 'press to show Popup'
17+
on_release: root.popup.open()

0 commit comments

Comments
 (0)