eric6/eric6_uipreviewer.py

changeset 8234
fcb6b4b96274
parent 8143
2c730d5fd177
equal deleted inserted replaced
8233:bad78a592cc2 8234:fcb6b4b96274
44 @param argv list of commandline parameters (list of strings) 44 @param argv list of commandline parameters (list of strings)
45 @return reference to the main widget (QWidget) 45 @return reference to the main widget (QWidget)
46 """ 46 """
47 from Tools.UIPreviewer import UIPreviewer 47 from Tools.UIPreviewer import UIPreviewer
48 48
49 if len(argv) > 1: 49 fn = argv[1] if len(argv) > 1 else None
50 fn = argv[1] 50 previewer = UIPreviewer(fn, None, 'UIPreviewer')
51 else:
52 fn = None
53 51
54 previewer = UIPreviewer(fn, None, 'UIPreviewer')
55 return previewer 52 return previewer
56 53
57 54
58 def main(): 55 def main():
59 """ 56 """

eric ide

mercurial