how to maximize a Tkinter Window in python TK???
Matimus
mccredie at gmail.com
Wed Dec 12 20:18:10 EST 2007
On Dec 12, 3:11 pm, "d4v.j... at googlemail.com"
<d4v.j... at googlemail.com> wrote:
> hello @ all,
>
> subj?
example:
import Tkinter as tk
rt = tk.Tk()
rt.state("zoomed")
rt.overrideredirect(True)
can = tk.Canvas(rt, bg="black",borderwidth=0,highlightthickness=0)
can.pack(expand=True, fill=tk.BOTH)
def draw_rect(e):
can.create_rectangle(e.x,e.y,e.x+100,e.y+100, fill='white',
outline='white')
can.bind("<Button-1>",draw_rect)
rt.bind("<Escape>",lambda e:rt.destroy())
rt.mainloop()
-Matt
More information about the Python-list
mailing list