Hi Eric,

> Are you sure about that? I just tried:

My original question said "resizable window" :)

I have a *resizable* Tkinter window with min and max sizes set. I
want to prevent users from attempting to maximize this window
because the window pops over to the upper left of the display - a
behavior that my users find very frustrating (and of little
value).

I can trap the maximize event in Tkinter by binding to a window's
<Configure> event, but the Tkinter raises the <Configure> event
*after* it has maximized the window so I can't cancel the
maximize behavior.

Thanks for your help!

Malcolm

<snipped>
On 2 déc. 10, at 12:49, [1]pyt...@bdurham.com wrote:

If I have a windows handle to my Tkinter window, is there a win32
api call that I can use that will prevent my window from being
maximized?

There is no way to prevent a resizable window from being
maximized in Tkinter other than to remove the window's border and
titlebar (both of which I would like to keep).

</snipped>

References

1. mailto:pyt...@bdurham.com
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to