Example #1
0
    def __init__(self):
        self.xml = get_gtk_builder("connect_server")

        self.dialog = self.xml.get_object("dialog")
        self.host = self.xml.get_object("host")
        self.connect_button = self.xml.get_object("connect_button")

        self.xml.connect_signals(self)
Example #2
0
 def __init__(self, main):
     
     xml = get_gtk_builder('login')
     
     self.login = xml.get_object('login')
     
     if osname == "nt": # Change type of login window
         c = self.login.get_children()
         if c:
             w = c[0]
             self.login.remove(w)
             self.login = gtk.Window(gtk.WINDOW_TOPLEVEL)
             self.login.set_decorated(False)
             self.login.set_position(gtk.WIN_POS_CENTER_ALWAYS)
             self.login.add(w)
     
     self.entry = xml.get_object('entry')
     self.image = xml.get_object('image')
     self.label = xml.get_object('label')
     self.title = xml.get_object('title')
     self.okbnt = xml.get_object('okbnt')
     self.againbnt = xml.get_object('againbnt')
     self.warn_msg = xml.get_object('warn_msg')
     self.imagealign = xml.get_object('imagealign')
     self.wm_title = xml.get_object('wm_title')
     self.xml = xml
     #self.login_radio_item = self.xml.get_object("login_radio_item")
     #self.admin_radio_item = self.xml.get_object("admin_radio_item")
     self.err_box = self.xml.get_object("err_box")
     
     self.password = None
     self.username = None
     self.running = True
     self.main = main
     
     #Title
     self.xml.get_object("title_eventbox").set_state(gtk.STATE_SELECTED)
     
     #Clock
     self.clock_label = gtk.Label()
     self.clock_item = gtk.MenuItem()
     self.clock_item.add(self.clock_label)
     self.clock_item.set_right_justified(True)
     self.clock_item.show_all()
     self.xml.get_object("menubar").append(self.clock_item)
     self.clock_item.unset_flags(gtk.SENSITIVE)
     self.clock_update()
     self.xml.connect_signals(self)
Example #3
0
    def __init__(self, server=None):
        self.xml = get_gtk_builder("prefs")
        self.dialog = self.xml.get_object("dialog")

        if server:
            self.xml.get_object("server_entry").set_text(server)