eric5_sqlbrowser.py

changeset 945
8cd4d08fa9f6
parent 896
f855351d5e98
child 1509
c0b5e693b0eb
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
21 sys.argv.remove(arg) 21 sys.argv.remove(arg)
22 break 22 break
23 23
24 from Utilities import Startup 24 from Utilities import Startup
25 25
26
26 def createMainWidget(argv): 27 def createMainWidget(argv):
27 """ 28 """
28 Function to create the main widget. 29 Function to create the main widget.
29 30
30 @param argv list of commandline parameters (list of strings) 31 @param argv list of commandline parameters (list of strings)
38 connections = [] 39 connections = []
39 40
40 browser = SqlBrowser(connections) 41 browser = SqlBrowser(connections)
41 return browser 42 return browser
42 43
44
43 def main(): 45 def main():
44 """ 46 """
45 Main entry point into the application. 47 Main entry point into the application.
46 """ 48 """
47 options = [\ 49 options = [\
48 ("--config=configDir", 50 ("--config=configDir",
49 "use the given directory as the one containing the config files"), 51 "use the given directory as the one containing the config files"),
50 ] 52 ]
51 appinfo = Startup.makeAppInfo(sys.argv, 53 appinfo = Startup.makeAppInfo(sys.argv,
52 "Eric5 SQL Browser", 54 "Eric5 SQL Browser",
53 "connection", 55 "connection",
54 "SQL browser", 56 "SQL browser",

eric ide

mercurial