Float conversions for GridCellFloatEditor on 2.9

Hi,

As a workaround for http://trac.wxwidgets.org/ticket/15040, I need to format floating-point numbers into localised text and parse the value back again, using the same number format that wxWidgets uses.

Anyone know how to do that? Google tells me about wxNumberFormatter and wxString::ToDouble, but I can find no ‘NumberFormatter’ in the wx namespace.

It seems these conversions are necessary to programmatically enter numbers into and retrieve them back from a grid cell using GridCellFloatEditor.

best regards, Anders

Hi,

As a workaround for wxTrac has been migrated to GitHub Issues - wxWidgets, I need to
format floating-point numbers into localised text and parse the value
back again, using the same number format that wxWidgets uses.

Hi, replying to my own post.

A quick and helpful reply on the tracker from vadz, informed me that
the change in 2.9.4 that's been causing me problems is an automatic
locale settting (which will be reverted in 2.9.5).

So adding:
  locale.setlocale(locale.LC_ALL, 'C')
right after wx.App creation, that brings the old behaviour back, and I
don't need conversion functions anyway.

- Anders