or other issue.
Enter code here...from kivy.properties import NumericProperty
from kivy.app import App
from kivy.lang import Builder
class TestApp(App):
number = NumericProperty(0)
def build(self):
root = Builder.load_string('''
BoxLayout:
orientation: 'vertical'
Label:
text: '{} has type {}'.format(app.number, type(app.number))
Button:
on_release: app.number += 1
text: 'press me'
''')
return root
TestApp().run()
For what is worth, my kivy code would look like:
text: ‘my_integer: ‘ + str(my_integer) if my_integer else ‘’
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/adc4b89d-6606-4c57-8eaa-1d035449fd9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.