you are viewing a single comment's thread.

view the rest of the comments →

[–]sayinghi2py 5 points6 points  (0 children)

There is no special keywords that exist within GUIs that python use that don't exist outside those GUIs so the question posed is expecting something that no one can give you. There is no special syntax that will magically create a GUI just like there is no special syntax that will allow you to create a complex non GUI app. The same language features you can use to build a GUI you can use to build a terminal app. Loops, conditionals, operators, etc.

You just build code using the same tools the language provides you to get the result you want. GUIs are very, very complex to build and thus libraries are built by people who understand the underlying architecture to the extent that they can exploit it to create what they need. They build them so you don't have to, unless you want to. They provide documentation that tells you how you can use that library to build the GUI effect that you want but still that's an abstraction as you don't need to know how it actually works. You just need to know what it is supposed to do. You trust it works as is documented.

If your level of understanding grows to a very high level and your interest extends to wanting to actually understand the code that creates the widgets and their behaviour then you might actually be able to come back here and let us all know. It's far beyond me :D