examples:showcase add the missing popup.kv

This commit is contained in:
qua-non 2014-01-26 02:19:45 +05:30
parent c24d02d1ae
commit b742592c7f
1 changed files with 17 additions and 0 deletions

View File

@ -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()