Browse Source

restructured module into package

master
Holger Frey 8 years ago
parent
commit
2364cd0157
  1. 13
      array2xls/__init__.py
  2. 11
      array2xls/gui.py

13
array2xls/__init__.py

@ -0,0 +1,13 @@
import tkinter as tk
import gui
if __name__ == '__main__':
root = tk.Tk()
app = gui.Application(master=root)
app.mainloop()
try:
root.destroy()
except tk.TclError:
pass

11
array2xls.py → array2xls/gui.py

@ -20,7 +20,7 @@ class StatusBar(tk.Frame):
class Application(tk.Frame): class Application(tk.Frame):
def __init__(self, master=None): def __init__(self, master):
#master.geometry("500x500") #master.geometry("500x500")
master.minsize(height=100, width=100) master.minsize(height=100, width=100)
tk.Frame.__init__(self, master) tk.Frame.__init__(self, master)
@ -43,11 +43,4 @@ class Application(tk.Frame):
print(type(result), ':', result) print(type(result), ':', result)
if __name__ == '__main__':
root = tk.Tk()
app = Application(master=root)
app.mainloop()
try:
root.destroy()
except tk.TclError:
pass
Loading…
Cancel
Save