def __init__(self, *args, **kwargs): Frame.__init__(self) Gtk.Box.__init__(self, *args, **kwargs) parent = find_parent(Container) if parent is None: raise Exception("Box needs to be defined inside a Window") parent.add(self) _connect_events(self, Gtk.Widget) _connect_events(self, Gtk.Box)
def __init__(self, *args, **kwargs): Frame.__init__(self) Gtk.Button.__init__(self, *args, **kwargs) find_parent(Window).add(self) self.clicked = Event("Button.clicked") def send_clicked_event(*args): self.clicked.send(args) self.connect("clicked", send_clicked_event)
def __init__(self, *args, **kwargs): Frame.__init__(self) Gtk.Window.__init__(self, *args, **kwargs) self.connect("destroy", lambda _: self.remove())
def __init__(self): QtGui.QStandardItemModel.__init__(self) Frame.__init__(self)
def __init__(self, rows, columns): QtGui.QStandardItemModel.__init__(self, rows, columns) Frame.__init__(self)