Re: Re: Bug in auto-generated function arg list
Eric Fahlgren <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <CAP2Qz+W_eQUmsQ6TMqiCyCwnigqeRHsmTB2YxiNqDPqHJfjfBg@mail.gmail.com> |
Thanks, Robin. I found that in our main window code, we had turned off the deprecation warnings (d'oh!), so I turned them back on and updated all my HitTest calls... On Tue, Aug 8, 2017 at 12:31 PM, Robin Dunn <[email protected]> wrote: > Filed at https://github.com/wxWidgets/Phoenix/issues/459 > > Robin > > On Tuesday, August 8, 2017 at 11:19:07 AM UTC-7, Eric Fahlgren wrote: >> >> Just ran into a bug in a deprecated function, line 2347 core.py from >> wxPython-4.0.0b2.dev3256+71cb7d6-cp27-cp27m-win_amd64.whl >> >> NameError: global name 'self' is not defined >> >> def _VScrolledWindow_HitTest(*args): >> """ >> Deprecated compatibility helper. >> """ >> if len(args) == 2: >> x, y = args >> return *self*.VirtualHitTest(y) >> else: >> pt = args[0] >> return *self*.VirtualHitTest(pt[1]) >> >> For some reason I'm not seeing the deprecation messages, or I'd probably >> have cleaned that up and not seen this. >> > -- > 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]. > For more options, visit https://groups.google.com/d/optout. > -- 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]. For more options, visit https://groups.google.com/d/optout.