def show_about(self, *args): # TODO DBUS ONLY # TODO TRAY ONLY """Hides the main window and creates an instance of the About Dialog. """ self.hide() AboutDialog()
def dialog(mocker): mocker.patch('guake.simplegladeapp.Gtk.Widget.show_all') try: old_os_environ = os.environ os.environ["LANGUAGE"] = "en_US.UTF-8" ad = AboutDialog() yield ad finally: os.environ = old_os_environ
def show_about(self, *args): """Hides the main window and creates an instance of the About Dialog. """ self.hide() AboutDialog()
def on_show_about(self, *args): self.notebook.guake.hide() AboutDialog()
def on_show_about(self, user_data): self.guake.hide() AboutDialog()
def dialog(mocker, monkeypatch): mocker.patch("guake.simplegladeapp.Gtk.Widget.show_all") monkeypatch.setenv("LANGUAGE", "en_US.UTF-8") yield AboutDialog()
def dialog(mocker): mocker.patch('guake.simplegladeapp.Gtk.Widget.show_all') ad = AboutDialog() return ad