Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from idlelib.tooltip import Hovertip
- def okno2():
- ak = Tk()
- ak.title(“Окно 2”)
- ak.geometry(“150x80”)
- btn = Button (ak, text=“Окно2”, height = 4, width = 20)
- btn.pack(side=LEFT)
- Hovertip(btn, )
- tk.mainloop()
- tk = Tk()
- tk.title(“Окно1”)
- tk.geometry(“100x80”)
- btn = Button (tk, text=“Старт”, height = 4, width = 20, command = okno2)
- btn.pack(side=LEFT)
- tk.mainloop()
Add Comment
Please, Sign In to add comment