Python Forum
[Kivy] Why no brackets
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
Reply
#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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020