-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move kivy.require before other imports and convert tabs to space-tabs…
… in kv example
- Loading branch information
dessant
committed
May 15, 2015
1 parent
aeeac3e
commit 3d3a6d0
Showing
4 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#:kivy 1.8.0 | ||
|
||
BoxLayout: | ||
orientation: 'vertical' | ||
TextInput: | ||
# setting the id of the widget | ||
id: my_id | ||
text: 'The text of the label is set within kivy' | ||
Label: | ||
# showing the text of the textinput by referring on the id | ||
text: my_id.text | ||
orientation: 'vertical' | ||
TextInput: | ||
# setting the id of the widget | ||
id: my_id | ||
text: 'The text of the label is set within kivy' | ||
Label: | ||
# showing the text of the textinput by referring on the id | ||
text: my_id.text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#:kivy 1.0 | ||
#:kivy 1.8.0 | ||
|
||
RootWidget: | ||
BoxLayout: | ||
orientation: 'vertical' | ||
Switch: | ||
id: my_switch | ||
on_active: root.first_function(self.active) | ||
|
||
Label: | ||
id: my_label | ||
text: 'This text will be changed by the python file' | ||
BoxLayout: | ||
orientation: 'vertical' | ||
Switch: | ||
id: my_switch | ||
on_active: root.first_function(self.active) | ||
Label: | ||
id: my_label | ||
text: 'This text will be changed by the python file' |