Beispiel #1
0
    def __init__(self):

        Gtk.Plug.__init__(self, 0L)

        self.topview = TopView()

        scroll = Gtk.ScrolledWindow()
        scroll.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
        scroll.add_with_viewport(self.topview)

        self.add(scroll)
        self.show_all()

        self.actualizador = False
        self.__new_handle(True)
Beispiel #2
0
    def __init__(self):

        gtk.Plug.__init__(self, 0L)

        self.control = Control()
        self.topview = TopView()

        scroll = gtk.ScrolledWindow()
        scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
        scroll.add_with_viewport(self.topview)

        self.add(scroll)
        self.show_all()

        _thread = threading.Thread(target=self.control.run)
        _thread.start()