<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 2 déc. 10, at 12:49, <a href="mailto:python@bdurham.com">python@bdurham.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="padding-top: 1ex; padding-right: 1ex; padding-bottom: 1ex; padding-left: 1ex; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: sans-serif; font-size: small; "><div dir="ltr" style="font-family: Arial; font-size: medium; "><div>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?</div><div>&nbsp;</div><div>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).</div></div></div></span></blockquote><div><br></div>Are you sure about that? I just tried:</div><div><br></div><div>from Tkinter import *</div><div>root = Tk()</div><div>root.wm_resizable(False, False)</div><div><br></div><div>and it disables the maximize button. I'm on a Mac though, not sure it works on Windows…</div><div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="padding-top: 1ex; padding-right: 1ex; padding-bottom: 1ex; padding-left: 1ex; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: sans-serif; font-size: small; "><div dir="ltr" style="font-family: Arial; font-size: medium; "><div>Thank you,</div><div>Malcolm</div></div></div></span></blockquote></div><br></body></html>