Different look and feel: using built-in wx on Ubuntu vs manually built wx

Christopher Kampmeier wrote:

I've noticed that the look and feel of widgets differs when we run the app using the wx binaries that from the Ubuntu 7.10 package repository as compared to when we run it against a manually build of wxPython and wxWidgets. For example:

* CheckListCtrl column headers and check boxes have more modern and fully rendered appearance when using Ubuntu's wx binaries.

You may not like the look as much, but the look in the newer version is actually the one that is more correct. In the older version of the code (the one you got from Ubuntu) the native renderer used by the listctrl just used the plain draw button function from the gtk api. In the new version it is instead using the api in a way that lets the theme know that a list column header is desired, so the theme can instead draw it as a header instead of a button. How it actually looks is up to the author of the theme. (IOW, there could be themes where buttons and col headers still look the same, but I expect that most will be different.)

For the check boxes, those are just icons give to the listctrl like any other icon. The difference in the two versions however is that the old one just used some static bitmaps that were copied from XP IIRC. The new version uses the native renderer to create the bitmaps on the fly using the native theme. In your screenshot it looks like they are getting clipped so there should probably be some more intelligence used on selecting the size of the bitmap... However if you want to use something else you can just pass your own bitmaps to the CheckListCtrlMixin constructor.

* About dialog won't use the native widget when used with out manually built binaries, but uses the nice Gnome widget when used with Ubuntu's wx binaries

Do have screen shots for this?

ยทยทยท

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