Re: Beta release: 0.8.0b1
Federico Fanton <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 27/12/2017 14:12, Dietmar Schwertberger wrote: > Please be informed that I have uploaded revision 0.8.0b1 to the project > page: > https://sourceforge.net/projects/wxglade/files/wxglade/0.8.0/ Hi Dietmar, thanks for this new release :) I'm seeing a small change in behaviour since 0.8.0a9 though: now some (all?) widgets get ALWAYS initialized with the "style" parameter, even when there's no "style" checkbox enabled inside the GUI designer. For example, I have one wx.TreeCtrl that with 0.8.0a9 used to generate self.tree = wx.TreeCtrl(self.pnl, wx.ID_ANY) while with 0.8.0b1 I get self.tree = wx.TreeCtrl(self.pnl, wx.ID_ANY, style=0) Since the default value for "style" for wx.TreeCtrl is TR_DEFAULT_STYLE and not 0, this change may cause a different behaviour when running the generated program. Something similar happens with Notebooks and StaticLines. Now, of course wxGlade is not wrong in thinking "there's no checkbox enabled, I'll set the style to 0", but I thought I'd point this out since it could cause some subtle "surprises" if someone upgrades to the new version with a setup like mine :D (For my part I think I'll just browse my wxg project and explicitly set the *_DEFAULT_STYLE checkboxes where I need them) Thanks for your attention, bye! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot