Пример #1
0
 def setup_method(self, method):
     window1 = nfoview.Window(self.new_nfo_file())
     window2 = nfoview.Window(self.new_nfo_file())
     nfoview.main.windows.append(window1)
     nfoview.main.windows.append(window2)
     self.dialog = nfoview.PreferencesDialog(Gtk.Window())
     self.rgba = Gdk.RGBA(red=1, green=0, blue=1)
Пример #2
0
    def _on_preferences_activate(self, *args):
        if self._preferences_dialog is not None:
            return self._preferences_dialog.present()
        self._preferences_dialog = nfoview.PreferencesDialog(self)

        def destroy(dialog, response, self):
            self._preferences_dialog.destroy()
            self._preferences_dialog = None

        self._preferences_dialog.connect("response", destroy, self)
        self._preferences_dialog.show()
Пример #3
0
 def setup_method(self, method):
     self.dialog = nfoview.PreferencesDialog(Gtk.Window())
     self.rgba = Gdk.RGBA(red=1, green=0, blue=1)