Utilities/Startup.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
--- a/Utilities/Startup.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Utilities/Startup.py	Fri Mar 11 16:51:57 2011 +0100
@@ -24,7 +24,7 @@
 from eric5config import getConfig
 
 
-def makeAppInfo(argv, name, arg, description, options = []):
+def makeAppInfo(argv, name, arg, description, options=[]):
     """
     Module function to generate a dictionary describing the application.
     
@@ -44,10 +44,11 @@
         "name": name,
         "description": description,
         "version": Version,
-        "options" : options
+        "options": options
         }
 
-def usage(appinfo, optlen = 12):
+
+def usage(appinfo, optlen=12):
     """
     Module function to show the usage information.
     
@@ -70,6 +71,7 @@
         print("  {0}  {1}".format(opt[0].ljust(optlen), opt[1]))
     sys.exit(0)
 
+
 def version(appinfo):
     """
     Module function to show the version information.
@@ -87,6 +89,7 @@
 PARTICULAR PURPOSE.""".format(**appinfo))
     sys.exit(0)
 
+
 def handleArgs(argv, appinfo):
     """
     Module function to handle the always present commandline options.
@@ -110,6 +113,7 @@
             args[a](appinfo)
     return ddindex
 
+
 def loadTranslatorForLocale(dirs, tn):
     """
     Module function to find and load a specific translation.
@@ -128,6 +132,7 @@
     print("Using default.")
     return (None, False)
 
+
 def initializeResourceSearchPath():
     """
     Module function to initialize the default mime source factory.
@@ -140,6 +145,7 @@
     if not defaultIconPath in iconPaths:
         UI.PixmapCache.addSearchPath(defaultIconPath)
 
+
 def setLibraryPaths():
     """
     Module function to set the Qt library paths correctly for windows systems.
@@ -157,7 +163,8 @@
 # the translator must not be deleted, therefore we save them here
 loaded_translators = {}
 
-def loadTranslators(qtTransDir, app, translationFiles = ()):
+
+def loadTranslators(qtTransDir, app, translationFiles=()):
     """
     Module function to load all required translations.
     
@@ -194,8 +201,9 @@
         loc = None
     return loc
 
-def simpleAppStartup(argv, appinfo, mwFactory, quitOnLastWindowClosed = True, 
-    app = None):
+
+def simpleAppStartup(argv, appinfo, mwFactory, quitOnLastWindowClosed=True,
+    app=None):
     """
     Module function to start up an application that doesn't need a specialized start up.
     

eric ide

mercurial