Skip to content

Instantly share code, notes, and snippets.

@Alan-FGR
Created July 5, 2016 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alan-FGR/1934aadc8b0ac8113305e47b78599d06 to your computer and use it in GitHub Desktop.
Save Alan-FGR/1934aadc8b0ac8113305e47b78599d06 to your computer and use it in GitHub Desktop.
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()
@Alan-FGR
Copy link
Author

Alan-FGR commented Jul 5, 2016

Current output:
wrap_problem

@Alan-FGR
Copy link
Author

Alan-FGR commented Jul 5, 2016

fix pull request here: kivy/kivy#4453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment