*SPAM*: 04.0/4.0 - Re: how to maximize a Tkinter Window in python TK???

Jose Ignacio Gisbert jigisbert.etra-id at grupoetra.com
Thu Dec 13 01:32:19 EST 2007


If you want to start with your main window maximized, you can do:

root = Tk()
root.state("zoomed")

Regards,
Naxo



-----Mensaje original-----
De: python-list-bounces+jigisbert.etra-id=grupoetra.com at python.org
[mailto:python-list-bounces+jigisbert.etra-id=grupoetra.com at python.org] En
nombre de Matimus
Enviado el: jueves, 13 de diciembre de 2007 2:18
Para: python-list at python.org
Asunto: *SPAM*: 04.0/4.0 - Re: how to maximize a Tkinter Window in python
TK???

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


-- 
http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list