Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(LoginDialog, self).__init__(*args, **kwargs)
     self.popup_menu = managers.MenuManager()
     self.popup_menu.append(
         'About', lambda x: about.AboutDialog(self.application).interact())
     self.popup_menu.append('Import Configuration',
                            self.signal_menuitem_activate_import_config)
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     super(LoginDialog, self).__init__(*args, **kwargs)
     self.popup_menu = Gtk.Menu.new()
     menu_item = Gtk.MenuItem.new_with_label('About')
     menu_item.connect(
         'activate',
         lambda x: about.AboutDialog(self.config, self.dialog).interact())
     self.popup_menu.append(menu_item)
     self.popup_menu.show_all()
Ejemplo n.º 3
0
	def __init__(self, *args, **kwargs):
		super(LoginDialog, self).__init__(*args, **kwargs)
		self.popup_menu = Gtk.Menu.new()

		menu_item = Gtk.MenuItem.new_with_label('About')
		menu_item.connect('activate', lambda x: about.AboutDialog(self.application).interact())
		self.popup_menu.append(menu_item)

		menu_item = Gtk.MenuItem.new_with_label('Import Configuration')
		menu_item.connect('activate', self.signal_menuitem_activate_import_config)
		self.popup_menu.append(menu_item)

		self.popup_menu.show_all()
Ejemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        super(LoginDialog, self).__init__(*args, **kwargs)
        self.popup_menu = managers.MenuManager()
        self.popup_menu.append(
            'About', lambda x: about.AboutDialog(self.application).interact())
        self.popup_menu.append('Import Configuration',
                               self.signal_menuitem_activate_import_config)

        # setup server completion
        model = Gtk.ListStore(str)
        for entry in self.config['server.history']:
            model.append((entry, ))
        completion = Gtk.EntryCompletion()
        completion.set_model(model)
        completion.set_text_column(0)
        self.gobjects['entry_server'].set_completion(completion)