<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!--body{padding:1ex;margin:0px;font-family:sans-serif;font-size:small;}a[href]{color:-moz-hyperlinktext !important;text-decoration:-moz-anchor-decoration;}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em;}blockquote blockquote{border-color:#006312;}blockquote blockquote blockquote{border-color:#540000;}--></style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div>Hi Eric, </div>
<div> </div>
<div>> Are you sure about that? I just tried:</div>
<div> </div>
<div>My original question said "resizable window" :)</div>
<div> </div>
<div>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).</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Thanks for your help!</div>
<div> </div>
<div>Malcolm</div>
<div> </div>
<div><snipped></div>
<div>
<div>On 2 déc. 10, at 12:49, <a href="mailto:python@bdurham.com">python@bdurham.com</a> wrote:</div>
<br class="me79718Apple-interchange-newline">
<blockquote type="cite">
<div style="padding: 1ex; margin: 0px; font-family: sans-serif; font-size: small;">
<div style="font-family: Arial; font-size: medium;" dir="ltr">
<div><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-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;" class="me79718Apple-style-span">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?</span></div>
<div><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-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;" class="me79718Apple-style-span"> </span></div>
<div><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-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;" class="me79718Apple-style-span">There is no way to prevent a <u>resizable</u> window from being maximized in Tkinter other than to remove the window's border and titlebar (both of which I would like to keep).</span></div>
</div>
</div>
</blockquote>
<div></snipped></div>
<div> </div>
</div></div></body></html>