2012-10-16 17:44:34 +00:00
|
|
|
#:kivy 1.4
|
|
|
|
|
2012-10-18 03:48:34 +00:00
|
|
|
[ContainerToggle@ToggleButton]:
|
|
|
|
group: "container_toggle"
|
|
|
|
text: ctx.text
|
|
|
|
on_press: root.parent.parent.parent.show_kv(*args)
|
|
|
|
state: ctx.state if hasattr(ctx, "state") else "normal"
|
2012-10-16 17:44:34 +00:00
|
|
|
|
|
|
|
<Catalog>:
|
|
|
|
language_box: language_box
|
2012-10-18 03:48:34 +00:00
|
|
|
screen_manager: screen_manager
|
2012-10-16 17:44:34 +00:00
|
|
|
BoxLayout:
|
2012-10-18 03:48:34 +00:00
|
|
|
BoxLayout:
|
|
|
|
size_hint: None, 1
|
|
|
|
orientation: "vertical"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Welcome"
|
|
|
|
state: "down"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Float Layout"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Box Layout"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Anchor Layout"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Grid Layout"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Stack Layout"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Buttons"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Labels"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Booleans"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Progress Bar"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Media"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Text"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Popups"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Selectors"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "File Choosers"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "Scatter"
|
|
|
|
ContainerToggle:
|
|
|
|
text: "ReST"
|
|
|
|
ScreenManager:
|
|
|
|
id: screen_manager
|
|
|
|
size_hint: 1, 1
|
|
|
|
Screen:
|
|
|
|
name: "Welcome"
|
|
|
|
PlaygroundContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Float Layout"
|
|
|
|
FloatLayoutContainer
|
|
|
|
Screen:
|
|
|
|
name: "Box Layout"
|
|
|
|
BoxLayoutContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Anchor Layout"
|
|
|
|
AnchorLayoutContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Grid Layout"
|
|
|
|
GridLayoutContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Stack Layout"
|
|
|
|
StackLayoutContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Buttons"
|
|
|
|
ButtonContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Labels"
|
|
|
|
LabelContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Booleans"
|
|
|
|
CheckBoxContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Progress Bar"
|
|
|
|
ProgressBarContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Media"
|
|
|
|
MediaContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Text"
|
|
|
|
TextContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Popups"
|
|
|
|
PopupContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Selectors"
|
|
|
|
SelectorsContainer:
|
|
|
|
Screen:
|
|
|
|
name: "File Choosers"
|
|
|
|
FileChooserContainer:
|
|
|
|
Screen:
|
|
|
|
name: "Scatter"
|
|
|
|
ScatterContainer:
|
|
|
|
Screen:
|
|
|
|
name: "ReST"
|
|
|
|
RestContainer:
|
2012-10-16 17:44:34 +00:00
|
|
|
|
|
|
|
BoxLayout:
|
|
|
|
id: bl
|
|
|
|
orientation: "vertical"
|
2012-10-18 03:48:34 +00:00
|
|
|
size_hint: 1, 1
|
2012-10-18 01:26:10 +00:00
|
|
|
KivyRenderTextInput:
|
2012-10-16 17:44:34 +00:00
|
|
|
text_size: self.width-20, self.height-20
|
|
|
|
font_name: "DroidSansMono.ttf"
|
|
|
|
valign: "top"
|
|
|
|
id: language_box
|
|
|
|
text: "This box will display the kivy language for whatever has been selected"
|
|
|
|
Button:
|
|
|
|
size_hint: 1, None
|
|
|
|
height: 50
|
|
|
|
text: "Render"
|
2012-10-18 03:48:34 +00:00
|
|
|
on_press: root.change_kv(*args)
|