You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code should work as this is a standard way of writing code and running it. But if I delete the decorator @operator the code throws an exception. Is it because of the version I am using (2.3.1) or the PyCharm IDE?
`from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This code should work as this is a standard way of writing code and running it. But if I delete the decorator @operator the code throws an exception. Is it because of the version I am using (2.3.1) or the PyCharm IDE?
`from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
class MyButtonApp(App):
@Property
def build(self):
layout = BoxLayout(orientation='vertical')
button = Button(text="BUTTON")
layout.add_widget(button)
return layout
if name == 'main':
MyButtonApp().run()`
Beta Was this translation helpful? Give feedback.
All reactions