M
MBW
I have a class that is a windows in a GUI
the following is the code:
class optWin:
def __init__(self):
return None
def __call__(self):
self.root = tk()
self.root.title("My title")
self.root.mainloop()
return None
1)Why doesn't this work when I go to call optWin
2)What is a better way to do this
Thanks in advance
the following is the code:
class optWin:
def __init__(self):
return None
def __call__(self):
self.root = tk()
self.root.title("My title")
self.root.mainloop()
return None
1)Why doesn't this work when I go to call optWin
2)What is a better way to do this
Thanks in advance