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()
I'm coding a program to learn OpenGL in C++ (based off of The Benny Boxes tutorials) and I've run into a snag where I don't get any errors, but my ...
I want to implement undo logic which deletes the last drawn shape. To test this logic i had cleared shapes list and redrawn all shapes but still last ...
Please tell me why triangle shape is redrawing on mouse move. It want triangle shape draw only once until mouse release.
Here is my code below. Thank you ...