differences between windows and linux

Pete Keller wrote:

I have found several problems with differences between wxwidgets on win2K and linux. Below are some of the problems found.

running the attached file under windows works just fine, lines 50 and 69 (self.bind) do not cause errors.

You probably have a 2.4.x version of wxPython installed on Linux and a 2.5.x version on Windows. Upgrade your Linux version.

and the radio buttons appear in the correct places based on their names (Upper Left, Upper Center, ...etc).

The native widgets used for wxRadioBox populate the box in different ways. Windows does left-to-right, top-to-bottom, and GTK does top-to-bottom, left-to-right. I'm afraid that if the layout order is important then the only ways around this are to either adjust your label orders as needed based on current platform, or to make your own radio group using somthing like a collection of wx.RadioButtons in a wx.StaticBoxSizer.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Pete Keller wrote:

I have found several problems with differences between wxwidgets on win2K and linux. Below are some of the problems found.

running the attached file under windows works just fine, lines 50 and 69 (self.bind) do not cause errors.

You probably have a 2.4.x version of wxPython installed on Linux and a 2.5.x version on Windows. Upgrade your Linux version.

As far as I can tell, I have identical versions.

and the radio buttons appear in the correct places based on their names (Upper Left, Upper Center, ...etc).

The native widgets used for wxRadioBox populate the box in different ways. Windows does left-to-right, top-to-bottom, and GTK does top-to-bottom, left-to-right. I'm afraid that if the layout order is important then the only ways around this are to either adjust your label orders as needed based on current platform, or to make your own radio group using somthing like a collection of wx.RadioButtons in a wx.StaticBoxSizer.

OK, this might be something to add to the docs.

···

On 01/03/05 21:08:58, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Pete Keller wrote:

···

On 01/03/05 21:08:58, Robin Dunn wrote:

Pete Keller wrote:

I have found several problems with differences between wxwidgets on win2K and linux. Below are some of the problems found.

running the attached file under windows works just fine, lines 50 and 69 (self.bind) do not cause errors.

You probably have a 2.4.x version of wxPython installed on Linux and a 2.5.x version on Windows. Upgrade your Linux version.

As far as I can tell, I have identical versions.

If you did you wouldn't have problems with Bind. Run this on both platforms to find out:

  python -c "import wx; print wx.VERSION"

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

If you did you wouldn't have problems with Bind. Run this on both platforms to find out:

  python -c "import wx; print wx.VERSION"

You were right
Linux: 2.4.2.4
Wndows: 2.5.2.8

Will upgrade linux soon

Thanks
Pete

···

On 01/04/05 16:46:46, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!