--- a/eric5_trpreviewer.py Fri Mar 11 08:55:14 2011 +0100 +++ b/eric5_trpreviewer.py Fri Mar 11 16:51:57 2011 +0100 @@ -27,6 +27,7 @@ from Tools.TRSingleApplication import TRSingleApplicationClient from Utilities import Startup + def createMainWidget(argv): """ Function to create the main widget. @@ -44,13 +45,14 @@ previewer = TRPreviewer(files, None, 'TRPreviewer') return previewer + 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 TR Previewer", @@ -71,8 +73,8 @@ else: res = Startup.simpleAppStartup(sys.argv, appinfo, - createMainWidget, - app = app) + createMainWidget, + app=app) sys.exit(res) if __name__ == '__main__':