Feb-17-2017, 06:11 PM
Correct me if I am wrong, but I think your saying that you want to something like the following:
from tkinter import * class Notepad: def __init__(self): self.root = Tk() def main(): np = Notepad() master = np.root master.mainloop() if __name__ == '__main__': main()