From a71a6b8e1a9ed6e02d5cb149e895a2fce3c05a6d Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 27 Aug 2007 06:39:00 +0000 Subject: [PATCH] add run configuration wizard to help menu --- glade/delugegtk.glade | 24 ++++++++++++++++++++++++ src/interface.py | 5 +++++ 2 files changed, 29 insertions(+) diff --git a/glade/delugegtk.glade b/glade/delugegtk.glade index 99db1a8d2..3655db57a 100644 --- a/glade/delugegtk.glade +++ b/glade/delugegtk.glade @@ -1026,6 +1026,30 @@ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Runs the first-time configuration wizard + _Run Configuration Wizard + True + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-preferences + 1 + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + True diff --git a/src/interface.py b/src/interface.py index ed496dfa1..0eaa01d09 100644 --- a/src/interface.py +++ b/src/interface.py @@ -170,6 +170,7 @@ class DelugeGTK: ## Help Menu "show_about_dialog": self.show_about_dialog, "launchpad": self.launchpad, + "run_wizard": self.run_wizard, ## Toolbar "tor_start": self.tor_start, "tor_pause": self.tor_pause, @@ -673,6 +674,10 @@ class DelugeGTK: def show_about_dialog(self, arg=None): dialogs.show_about_dialog() + def run_wizard(self, arg=None): + import wizard + wizard.WizardGTK() + def show_preferences_dialog(self): active_port = self.manager.get_state()['port'] preferences_dialog = dialogs.PreferencesDlg(self.config, active_port, self.plugins)