39 |
39 |
40 def createMainWidget(argv): |
40 def createMainWidget(argv): |
41 """ |
41 """ |
42 Function to create the main widget. |
42 Function to create the main widget. |
43 |
43 |
44 @param argv list of commandline parameters (list of strings) |
44 @param argv list of commandline parameters |
45 @return reference to the main widget (QWidget) |
45 @type list of str |
|
46 @return reference to the main widget |
|
47 @rtype QWidget |
46 """ |
48 """ |
47 from PyUnit.UnittestDialog import UnittestWindow |
49 from Unittest.UnittestWidget import UnittestWindow |
48 try: |
50 try: |
49 fn = argv[1] |
51 fn = argv[1] |
50 except IndexError: |
52 except IndexError: |
51 fn = None |
53 fn = None |
52 return UnittestWindow(fn) |
54 return UnittestWindow(fn) |