Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     Frame.__init__(self)
     Gtk.Window.__init__(self, *args, **kwargs)
     self.connect("destroy", lambda _: self.remove())
Exemplo n.º 4
0
 def __init__(self):
     QtGui.QStandardItemModel.__init__(self)
     Frame.__init__(self)
Exemplo n.º 5
0
 def __init__(self, rows, columns):
     QtGui.QStandardItemModel.__init__(self, rows, columns)
     Frame.__init__(self)