[pitivi] startupwizard: Make static methods from methods with no self use.



commit 5e95ea3b2c80b03afcdd79212e09e4d570887f96
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Thu Dec 26 14:47:01 2013 +0100

    startupwizard: Make static methods from methods with no self use.

 pitivi/dialogs/startupwizard.py |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/dialogs/startupwizard.py b/pitivi/dialogs/startupwizard.py
index 0c7bd6c..8662651 100644
--- a/pitivi/dialogs/startupwizard.py
+++ b/pitivi/dialogs/startupwizard.py
@@ -45,6 +45,16 @@ class StartUpWizard(object):
     - see the quick start manual (User Manual button).
     """
 
+    @staticmethod
+    def _userManualCb(unused_button):
+        """Handle a click on the Help button."""
+        show_user_manual()
+
+    @staticmethod
+    def _cheatsheetCb(unused_button):
+        """Show the cheatsheet section of the user manual"""
+        show_user_manual("cheatsheet")
+
     def __init__(self, app):
         self.app = app
         self.builder = Gtk.Builder()
@@ -106,14 +116,6 @@ class StartUpWizard(object):
         """Handle a click on the Missing Deps button."""
         DepsManager(self.app, parent_window=self.window)
 
-    def _userManualCb(self, unused_button):
-        """Handle a click on the Help button."""
-        show_user_manual()
-
-    def _cheatsheetCb(self, unused_button):
-        """Show the cheatsheet section of the user manual"""
-        show_user_manual("cheatsheet")
-
     def _deleteCb(self, unused_widget, unused_event):
         """Handle a click on the X button of the dialog."""
         self.app.projectManager.newBlankProject()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]