suse linux 10 and wx.listctrl display issues

  • Thread starter =?iso-8859-1?B?aWFuYXLp?=
  • Start date
?

=?iso-8859-1?B?aWFuYXLp?=

hey,

Having some problems getting wxpython apps to look right on SuSE 10.0
and KDE 3.4.
There are no RPMs that i could find so I built my own from source.
First time using 'default' settings - GTK 2.x and unicode:

rpmbuild -tb --define 'pyver 2.4' --define 'port gtk2' \
--define 'unicode 1' wxPython-src-2.6.2.1.tar.

I can run my apps but they look, well, funky. Mainly the background
color for my wx.listctrl's are unchangeable, and these default to the
same color as the window background, making them hard to see. Also some
widgets are positioned improperly... although i could maybe fix this by
tweaking sizers around.
I had an earlier (prior to HDD crash :( ) debian 3.1 install and
everything was fine, using similar configs... though i'm fairly sure
the KDE version was lower. I tried several different window styles and
themes to no avail. Finally I tried making another set of RPMs, this
time like so:

rpmbuild -tb --define 'pyver 2.4' --define 'port gtk' \
--define 'unicode 0' wxPython-src-2.6.2.1.tar.

(using GTK 1.2, ansi build).. and now my I can see my lists properly
but everything else looks absolutly disgusting !! looks like circa 1990
LOL, besides it's very hard to see anything due to tiny text and oddly
shaped/shaded widgets.

Is there a fix, or at least a step in the right direction for this? I'm
really liking SuSE 10 otherwise -especially YaST - and don't really
want to go back to debian over a wx.listctrl.
 
?

=?iso-8859-1?B?aWFuYXLp?=

hum finally did find some SuSE specific RPM's through yast by setting
the media directory to mirros.kernel.org. Cool. But still the same
thing happens...
 
E

Eric Davis

Put this in your main function before you instantiate your wx.App.

if platform.system() == 'Linux':
try:
del os.environ['GTK_RC_FILES']
del os.environ['GTK2_RC_FILES']
except ValueError:
pass

This is a problem with SuSE, but I do it for all linuxes just in case.

Eric
 
?

=?iso-8859-1?B?aWFuYXLp?=

Well that definitly works, thanks. Is there any way to keep the themes
though?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top