[wxPython-users] Just upgraded to wx 2.8
Werner F. Bruhin
werner.bruhin at free.fr
Thu Feb 1 01:56:48 PST 2007
Hi Aaron,
Aaron Rubin wrote:
> Thank you guys for your help on this one. I got through it by going
> through the tedious task of writing regular expressions to upgrade all
> of our code to post-wx 2.4 operability.
>
Pity that the upgrader did not work for you.
> I think I have one last regular expression change to undo, unless
> someone thinks it's not a big deal... All of my Boa-generated UIs now
> have identifiers in the wx namespace, e.g:
>
> [wx.ID_WXDIALOG1, wx.ID_WXDIALOG1BNCOPY, wx.ID_WXDIALOG1BTNOK,
> wx.ID_WXDIALOG1STATICBOX1, wx.ID_WXDIALOG1STATICBOX2,
> wx.ID_WXDIALOG1STATICTEXT4, wx.ID_WXDIALOG1STBUILDINFO,
> wx.ID_WXDIALOG1STHARDWARE,
> ] = [wx.NewId() for _init_ctrls in range(8)]
>
>
That should look something like this if you want to stay compatible with
Boa.
[wxID_PANELTFIRST, wxID_PANELTFIRSTFIRSTIMP,
wxID_PANELTFIRSTREMARKSFIRSTIMP,
wxID_PANELTFIRSTSTFIRSTIMP, wxID_PANELTFIRSTSTREMARKSFIRSTIMP,
] = [wx.NewId() for _init_ctrls in range(5)]
But anyhow I don't think it is a good idea to pollute the wx namespace
with all that, unlikely that you get a conflict but who knows.
Werner
More information about the wxpython-users
mailing list