Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Kivy] Why no brackets
#1
Hi, just starting to learn Kivy. I'm following tutorials done by "Tech with Tim". Was wondering why there were no brackets on the window manager within the .kv file as other classes are enclosed in <> when referencing them.

Here's the tutorial. https://techwithtim.net/tutorials/kivy-t...e-screens/

Thanks
Quote
#2
Hello and welcome.
Items in <brackets> are definitions of a widget. When item appears without brackets, it is an instance of that widget that was defined in brackets. You can compare it to classes and instances of classes in OOP.
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)