Python Forum
[Kivy] Why no brackets - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Kivy] Why no brackets (/thread-21552.html)



Why no brackets - kappicraig - Oct-04-2019

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-tutorial/multiple-screens/

Thanks


RE: Why no brackets - j.crater - Oct-08-2019

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.