def __init__(self, manager): self.manager = manager self.xml = openGlade(GLADE_FILE, root="PBAccountWidget") autoConnectMethods(self) self.widget = self.xml.get_widget("PBAccountWidget") self.on_serviceType_changed() self.selectedRow = None
def __init__(self): self.xml = openGlade(GLADE_FILE, root="MainIMWindow") self.chatui = gtkchat.GtkChatClientUI(self.xml) self.chatui._accountmanager = self # TODO: clean this up... it's used in gtkchat print self.xml._o autoConnectMethods(self, self.chatui.theContactsList) self.widget = self.xml.get_widget("AccountManWidget") self.widget.show_all() try: f = open(SETTINGS_FILE) self.accounts = pickle.load(f) print 'loaded!' self.refreshAccounts() except IOError: self.accounts = [] print 'initialized!'
def __init__(self, manager): self.manager = manager self.manager.lockNewAccount(1) self.xml = openGlade(GLADE_FILE, root="NewAccountWindow") autoConnectMethods(self) self.widget = self.xml.get_widget("NewAccountWindow") self.frame = self.xml.get_widget("GatewayFrame") # Making up for a deficiency in glade. widgetMenu = self.xml.get_widget("GatewayOptionMenu") m = gtk.GtkMenu() activ = 0 self.currentGateway = None for name, klas in registeredTypes: i = gtk.GtkMenuItem(name) m.append(i) k = klas(self.manager) i.connect("activate", self.gatewaySelected, k) if not activ: activ = 1 self.gatewaySelected(None, k) widgetMenu.set_menu(m) self.widget.show_all()
def __init__(self, maanger): self.xml = openGlade(GLADE_FILE, root="IRCAccountWidget") self.widget = self.xml.get_widget("IRCAccountWidget")