python - Create a new separate window in tkinter -
I want to create a new separate window, like opening a new page in Notepad.
This is what I have written:
Techonator import, frame, menu class example (frame) with imported tinter: def __init __ (self, parent): frame. __init __ (self, parent) self.parent = parents themselves ITUI (DEF IITUI (Self): Self. Title. ("Unified pages") MenuBar = Menu (menu) (manual) menu. Add_command (label = "exit", command = self.onExit) fileMenu.add_command (label = "create new page", command = self.on NewPage) menubar.add_cascade (label = "menu", menu = file menu) def closed (): FIT (FIT): Pass on FIT (FP): (DRP): Pass def main (): root = TC () Root.Eximetry ("500x600") AP = Example (root) route. Menloof () If __name__ == '_ _main___: main () Which widget should I use for this purpose?
Make an example of a class.
Comments
Post a Comment