rs6000

create form2

Nov 28th, 2020
695
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from tkinter import *
  2.  
  3.  
  4. def open_window():
  5.     top = Toplevel()
  6.     top.title("top window")
  7.     top.geometry("300x300+120+120")
  8.     button1 = Button(top, text="close", command=top.destroy)
  9.     button1.pack()
  10.  
  11.  
  12. root = Tk()
  13. button = Button(root, text="open window", command=open_window)
  14. button.pack()
  15.  
  16. root.geometry("300x300+120+120")
  17. root.mainloop()
RAW Paste Data