Preferences/Shortcuts.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3060
5883ce99ee12
--- a/Preferences/Shortcuts.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Preferences/Shortcuts.py	Fri Nov 01 15:48:48 2013 +0100
@@ -200,7 +200,8 @@
         ShortcutsWriter(f).writeXML()
         f.close()
     else:
-        E5MessageBox.critical(None,
+        E5MessageBox.critical(
+            None,
             QApplication.translate("Shortcuts", "Export Keyboard Shortcuts"),
             QApplication.translate(
                 "Shortcuts",
@@ -231,7 +232,8 @@
             saveShortcuts()
             syncPreferences()
     else:
-        E5MessageBox.critical(None,
+        E5MessageBox.critical(
+            None,
             QApplication.translate("Shortcuts", "Import Keyboard Shortcuts"),
             QApplication.translate(
                 "Shortcuts",
@@ -267,47 +269,47 @@
     """
     if "Project" in shortcuts:
         __setAction(e5App().getObject("Project").getActions(),
-            shortcuts["Project"])
+                    shortcuts["Project"])
     
     if "General" in shortcuts:
         __setAction(e5App().getObject("UserInterface").getActions('ui'),
-            shortcuts["General"])
+                    shortcuts["General"])
     
     if "Wizards" in shortcuts:
         __setAction(e5App().getObject("UserInterface").getActions('wizards'),
-            shortcuts["Wizards"])
+                    shortcuts["Wizards"])
     
     if "Debug" in shortcuts:
         __setAction(e5App().getObject("DebugUI").getActions(),
-            shortcuts["Debug"])
+                    shortcuts["Debug"])
     
     if "Edit" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('edit'),
-            shortcuts["Edit"])
+                    shortcuts["Edit"])
     
     if "File" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('file'),
-            shortcuts["File"])
+                    shortcuts["File"])
     
     if "Search" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('search'),
-            shortcuts["Search"])
+                    shortcuts["Search"])
     
     if "View" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('view'),
-            shortcuts["View"])
+                    shortcuts["View"])
     
     if "Macro" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('macro'),
-            shortcuts["Macro"])
+                    shortcuts["Macro"])
     
     if "Bookmarks" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('bookmark'),
-            shortcuts["Bookmarks"])
+                    shortcuts["Bookmarks"])
     
     if "Spelling" in shortcuts:
         __setAction(e5App().getObject("ViewManager").getActions('spelling'),
-            shortcuts["Spelling"])
+                    shortcuts["Spelling"])
     
     if "Window" in shortcuts:
         actions = e5App().getObject("ViewManager").getActions('window')
@@ -321,4 +323,4 @@
     
     if "HelpViewer" in shortcuts:
         __setAction(e5App().getObject("DummyHelpViewer").getActions(),
-            shortcuts["HelpViewer"])
+                    shortcuts["HelpViewer"])

eric ide

mercurial