Examples: minor fixes to kivycatalog

This commit is contained in:
Qua-non 2012-10-24 15:51:45 +05:30
parent 9f2003e438
commit 0c3588d0db
2 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,4 @@
#:kivy 1.4
Label:
text_size: self.width-60, self.height-60
valign: "middle"
text: "The Kivy Catalog is an interactive showcase of Kivy Widgets defined in the Kivy language. For each widget you see, you can directly edit the .kv language syntax to see what effects your changes have on the widget. Click 'Render' or hit 'Ctrl-S' to view your changes.\n\nThere is also a playground on this tab where you can test your Kivy language code directly. This is beta software. The basics seem to work, but some widgets are missing or don't have the ideal .kv representation. Not all widgets are represented yet. It is trivial to add a new .kv file to the interface.\n\nPull requests are welcome."
RstDocument:
text: "Welcome\n---------------\nThe Kivy Catalog is an interactive showcase of Kivy Widgets defined in the Kivy language. For each widget you see, you can directly edit the .kv language syntax to see what effects your changes have on the widget. Click 'Render' or hit 'Ctrl-S' to view your changes.\n\nThere is also a playground on this tab where you can test your Kivy language code directly. This is beta software. The basics seem to work, but some widgets are missing or don't have the ideal .kv representation. Not all widgets are represented yet. It is trivial to add a new .kv file to the interface.\n\nPull requests are welcome."

View File

@ -148,9 +148,8 @@ class Catalog(BoxLayout):
traceback.print_exc()
popup = Popup(title="Boom",
content=Label(text='Something horrible happened while parsing'
+ 'your Kivy Language", text_size=(350, None)),
text_size=(350, None),
size_hint=(None, None), size=(400, 400))
+ 'your Kivy Language', text_size=(350, None),
size_hint=(None, None), size=(400, 400)))
popup.open()