suse linux 10 and wx.listctrl display issues

Discussion in 'Python' started by =?iso-8859-1?B?aWFuYXLp?=, Mar 8, 2006.

  1. 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?=, Mar 8, 2006
    #1
    1. Advertising

  2. 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...
    =?iso-8859-1?B?aWFuYXLp?=, Mar 8, 2006
    #2
    1. Advertising

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

    Eric Davis Guest

    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

    ianaré wrote:
    > 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...
    >
    Eric Davis, Mar 10, 2006
    #3
  4. Well that definitly works, thanks. Is there any way to keep the themes
    though?
    =?iso-8859-1?B?aWFuYXLp?=, Mar 13, 2006
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Eisenmann

    Python 2.3.3 SuSE Linux RPMs available

    Simon Eisenmann, Apr 5, 2004, in forum: Python
    Replies:
    0
    Views:
    341
    Simon Eisenmann
    Apr 5, 2004
  2. michael
    Replies:
    5
    Views:
    576
    Hamilcar Barca
    Aug 10, 2004
  3. Erik Johnson
    Replies:
    8
    Views:
    704
    Peter Otten
    Feb 3, 2005
  4. Alasdair
    Replies:
    2
    Views:
    279
    Alasdair
    Dec 4, 2005
  5. Lothar Scholz
    Replies:
    1
    Views:
    105
    mepython
    Feb 1, 2005
Loading...

Share This Page