[python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?
Eric Brunel
eric.brunel at pragmadev.com
Thu Dec 2 14:20:13 CET 2010
On 2 déc. 10, at 12:49, python at 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).
Are you sure about that? I just tried:
from Tkinter import *
root = Tk()
root.wm_resizable(False, False)
and it disables the maximize button. I'm on a Mac though, not sure it
works on Windows…
> Thank you,
> Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20101202/bea588d5/attachment.html>
More information about the python-win32
mailing list