Re: SetSize doesn't
Robin Dunn <[email protected]> Thu, 6 Jun 2019 16:07:04 -0700 (PDT)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_578_1770851517.1559862424629 Content-Type: multipart/alternative; boundary="----=_Part_579_1806011418.1559862424629" ------=_Part_579_1806011418.1559862424629 Content-Type: text/plain; charset="UTF-8" On Thursday, June 6, 2019 at 3:01:45 PM UTC-7, Bob Swithers wrote: > > I'm using WxPython 4.0.6, Python 3.7 on Win-10. > > I have many apps that save their frame's size and position upon exit, > and restore it upon startup -- so the user's location/size preference is > preserved across invocations. For one app, however, it does not work > at all, and SetSize does nothing. (SetClientSize doesn't either.) > Absolutely no matter what I do, the resulting size is 400, 250 and the > position is always the same. > > What is going on? Or, how can I figure this out? > Is the MainLoop running yet? What's in the frame and how was it constructed? What else has or hasn't happened before the interactive code you showed? -- Robin -- You received this message because you are subscribed to the Google Groups "wxPython-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxPython-dev/2d0be36d-90d7-4958-ac6b-2f0b752eafe2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_579_1806011418.1559862424629 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><br>On Thursday, June 6, 2019 at 3:01:45 PM UTC-7, Bob= Swithers wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin= -left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"lt= r"><div>=C2=A0=C2=A0 I'm using WxPython 4.0.6, Python 3.7 on Win-10.</d= iv><div><br></div><div>=C2=A0=C2=A0 I have many apps that save their frame&= #39;s size and position upon exit, and restore it upon startup -- so the us= er's location/size preference is preserved across invocations.=C2=A0<sp= an style=3D"display:inline!important;float:none;background-color:transparen= t;color:rgb(34,34,34);font-family:"Arial","Helvetica",s= ans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:= 400;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:= 0px;text-transform:none;white-space:normal;word-spacing:0px">=C2=A0=C2=A0 F= or one app, however, it does not work at all, and SetSize does nothing.=C2= =A0 (SetClientSize doesn't either.)=C2=A0 Absolutely no matter what I d= o, the resulting size is 400, 250 and the position is always the same.</spa= n></div><div><span style=3D"display:inline!important;float:none;background-= color:transparent;color:rgb(34,34,34);font-family:"Arial","H= elvetica",sans-serif;font-size:13px;font-style:normal;font-variant:nor= mal;font-weight:400;letter-spacing:normal;text-align:left;text-decoration:n= one;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px= "><br></span></div><div><span style=3D"display:inline!important;float:none;= background-color:transparent;color:rgb(34,34,34);font-family:"Arial&qu= ot;,"Helvetica",sans-serif;font-size:13px;font-style:normal;font-= variant:normal;font-weight:400;letter-spacing:normal;text-align:left;text-d= ecoration:none;text-indent:0px;text-transform:none;white-space:normal;word-= spacing:0px">=C2=A0 =C2=A0 What is going on?=C2=A0 Or, how can I figure thi= s out?</span></div></div></blockquote><div><br></div><div>Is the MainLoop r= unning yet? What's in the frame and how was it constructed? What else h= as or hasn't happened before the interactive code you showed?</div><div= >=C2=A0</div><div>--</div><div>Robin</div></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;wxPython-dev" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">wxPyth= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/wxPython-dev/2d0be36d-90d7-4958-ac6b-2f0b752eafe2%40googlegroups= .com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/ms= gid/wxPython-dev/2d0be36d-90d7-4958-ac6b-2f0b752eafe2%40googlegroups.com</a= >.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> ------=_Part_579_1806011418.1559862424629-- ------=_Part_578_1770851517.1559862424629--