Beispiel #1
0
    def do_activate(self, show_preferences_dialog=False):
        if self._window:
            if show_preferences_dialog:
                show_preferences()
            else:
                self.show()
            return None

        right_box = Gtk.Box()
        right_box.set_name("RightBox")
        right_box.set_orientation(Gtk.Orientation.VERTICAL)
        right_box.add(self._search_box)
        right_box.add(self._items_view)

        self._window = Window(self)
        self._window.connect("configure-event", self._resize)
        self._window.connect("key-press-event", self._on_key_press)
        self._window.connect("key-release-event", self._on_key_release)
        self._window.connect("focus-out-event", lambda _, __: self._items_view.show_shortcut_hints(False))
        self._window.grid.attach(self._items_processors, 0, 0, 1, 1)
        self._window.grid.attach(self._main_toolbox, 0, 1, 1, 1)
        self._window.grid.attach(right_box, 1, 0, 1, 2)

        if show_preferences_dialog:
            show_preferences()
Beispiel #2
0
    def do_activate(self, show_preferences_dialog=False):
        if self._window:
            if show_preferences_dialog: show_preferences()
            else: self.show()
            return None

        right_box = Gtk.Box()
        right_box.set_name('RightBox')
        right_box.set_orientation(Gtk.Orientation.VERTICAL)
        right_box.add(self._search_box)
        right_box.add(self._items_view)

        self._window = Window(self)
        self._window.connect('configure-event', self._resize)
        self._window.connect('key-press-event', self._on_key_press)
        self._window.connect('key-release-event', self._on_key_release)
        self._window.connect(
            'focus-out-event',
            lambda _, __: self._items_view.show_shortcut_hints(False))
        self._window.grid.attach(self._items_processors, 0, 0, 1, 1)
        self._window.grid.attach(self._main_toolbox, 0, 1, 1, 1)
        self._window.grid.attach(right_box, 1, 0, 1, 2)

        if show_preferences_dialog: show_preferences()
Beispiel #3
0
 def show_prefs(self):
     show_preferences()
     self.hide()
Beispiel #4
0
 def show_prefs(self):
     show_preferences()
     self.hide()