--- a/eric5_tray.py Fri Mar 11 08:55:14 2011 +0100 +++ b/eric5_tray.py Fri Mar 11 16:51:57 2011 +0100 @@ -24,6 +24,7 @@ from Utilities import Startup + def createMainWidget(argv): """ Function to create the main widget. @@ -34,13 +35,14 @@ from Tools.TrayStarter import TrayStarter return TrayStarter() + def main(): """ Main entry point into the application. """ options = [\ - ("--config=configDir", - "use the given directory as the one containing the config files"), + ("--config=configDir", + "use the given directory as the one containing the config files"), ] appinfo = Startup.makeAppInfo(sys.argv, "Eric5 Tray", @@ -49,8 +51,8 @@ options) res = Startup.simpleAppStartup(sys.argv, appinfo, - createMainWidget, - quitOnLastWindowClosed = False) + createMainWidget, + quitOnLastWindowClosed=False) sys.exit(res) if __name__ == '__main__':