I'm learning interface design in Python 3 and Glade with GObject introspection, and I don't understand how you can pass another variable (or class?) to another class, like this:
from gi.repository import Gtk
class DemoWindow(Gtk.Window):
And what is the difference between class() and class - Does class() initiate the __init__
function, and class is used for referencing other functions, like class.function()
?
And is it possible to pass a variable to a class and use it in other functions?