Created
July 5, 2016 19:31
-
-
Save Alan-FGR/1934aadc8b0ac8113305e47b78599d06 to your computer and use it in GitHub Desktop.
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
from kivy.app import App | |
from kivy.app import Builder | |
from kivy.uix.stacklayout import StackLayout | |
from kivy.uix.textinput import TextInput | |
Builder.load_string(""" | |
<MyTextInput>: | |
size_hint: 1, None | |
font_size: 40 | |
padding: 50,0 | |
""") | |
class MyTextInput(TextInput): | |
pass | |
class Test(App): | |
def build(self): | |
root_layout = StackLayout() | |
for i in xrange(6): | |
root_layout.add_widget(MyTextInput(text="*this* goes off-view when typing here: ")) | |
return root_layout | |
def increase_size(self, *args): | |
self.my_unit += 1 | |
print self.my_unit | |
Test().run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current output: