Re: Alpha release: 0.8.0a2

Dietmar Schwertberger <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 10/11/2017 11:26 AM, Federico Fanton wrote:
> I've noticed that with the new version if you specify the size of a 
> frame, the generated code gets a
>
> self.SetSize((<a>, <b>))
>
> inside *both* __set_properties and __do_layout, is this intentional? 

Well, partially. The first one has always been there but did not have an 
effect as in __do_layout calling Layout would override the size again, 
at least for some wx versions. When adding the call to __do_layout I did 
not want to touch the original code generation. But now that the code 
generation has been refactored, it's time to remove the first call.

At some point in the future I will merge __set_properties and 
__do_layout to make the code look more like human-written code.

Regards,

Dietmar



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.