Re: missing enumberation for phoenix 4.0.0 SetSelectionMode?
Robin Dunn <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Demetrios Tsillas wrote: > I'm migrating code from wxPython 3.0.2 to 4.0.0 and have run into this > problem: > > https://wxpython.org/Phoenix/docs/html/wx.grid.Grid.html#wx.grid.Grid.SetSelectionMode > > My original code was: > > self.table_grid.SetSelectionMode(wx.grid.Grid.wxGridSelectRows) > > but this results in an error as we do not have wxGridSelectRows defined. > > is there a new way to do this? > Hmm. I hadn't realized those enums still had the 'wx' prefix... Classic had a renamed version of those flags that would let you use them like this wx.grid.Grid.SelectRows. Unfortunately those names didn't make it intto Phoenix until a few weeks ago (https://github.com/wxWidgets/Phoenix/pull/393) which was after a3. Currently the old names without the leading "wx" are available, (GridSelectRows) and the new names are in the snapshot builds. I'll add the leading "wx" back for compatibility, but the new names (SelectRows) should be considered the proper enum names to use going forward starting with the next release. -- Robin Dunn Software Craftsman http://wxPython.org -- 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.