TK question

MBW matt.walsh at gmail.com
Fri Oct 21 04:16:00 CEST 2005


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




More information about the Python-list mailing list