Hey I'm just wondering how to make pop-up windows in tkinter.
create a toplevel popup window that overlaps the root window
import Tkinter as tk
import tkinter as tk
window2 = tk.Toplevel(root)
# give window2 a position to overlap the root window
window2['bg'] = 'yellow'
tk.Button(window2, text='Leave window2', command=window2.destroy).pack()
root = tk.Tk() # root is a toplevel window
# set 200x200 window upper left corner to x=100, y=50
root['bg'] = 'green'
tk.Button(root, text='Pop up window2', command=popup_window).pack()
Good man James helped me learn die roll board game programming in Java,
and I applied it on Ladders and Snakes. Made one in Java. Now I'm learning to do ...
this is one of my assignment that I have to do. it is a triangle calculator. everything well with it but it just the calculation. when I run it, ...
Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was ...