43 @param argv list of commandline parameters (list of strings) |
43 @param argv list of commandline parameters (list of strings) |
44 @return reference to the main widget (QWidget) |
44 @return reference to the main widget (QWidget) |
45 """ |
45 """ |
46 from SqlBrowser.SqlBrowser import SqlBrowser |
46 from SqlBrowser.SqlBrowser import SqlBrowser |
47 |
47 |
48 if len(argv) > 1: |
48 connections = argv[1:] if len(argv) > 1 else [] |
49 connections = argv[1:] |
49 browser = SqlBrowser(connections) |
50 else: |
|
51 connections = [] |
|
52 |
50 |
53 browser = SqlBrowser(connections) |
|
54 return browser |
51 return browser |
55 |
52 |
56 |
53 |
57 def main(): |
54 def main(): |
58 """ |
55 """ |