mirror of https://github.com/kivy/kivy.git
examples:showcase add the missing popup.kv
This commit is contained in:
parent
c24d02d1ae
commit
b742592c7f
|
@ -0,0 +1,17 @@
|
|||
ShowcaseScreen:
|
||||
popup: popup
|
||||
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()
|
Loading…
Reference in New Issue