def test_gui():
 if sys.argv[1:]:
  filename = sys.argv[1]
 else:
  filename = 'sheet1.xml'
 g = SheetGUI(filename)
 g.root.mainloop()

def test_gui ( ) : if sys . argv [ 1 : ] : filename = sys . argv [ 1 ] else : filename = 'sheet1.xml' g = SheetGUI ( filename ) g . root . mainloop ( )
gui test .