Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • colors under KDE

    15 answers - 682 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi All,
    I've got an app I have put together that I am testing under several
    different environments, primarily Mandrake, Suse, and Windows. All three
    platforms are running wxPython 2.6. The problem I am having is this: not
    all of my color settings are being show under Suse. Specifically, my
    button foreground color and my panel background. The colors that are
    specifically set in my .xrc file are being shown with the default color
    (it appears) instead. The colors I have set for static text is K - it's
    just those darn buttons and panel backgrounds! Everything is just fine
    under Mandrake and Windows.
    Any ideas?
    Thanks
    Jim
  • No.1 | | 1440 bytes | |

    It can be that SuSE uses a specific theme for Gnome.
    I think that if you do

    unset GTK_RC_FILES
    unset GTK2_RC_FILES

    Then you wont get any theme and probably the colors will work.

    But there might be more than you need todo to make sure that
    you wont have any theme.

    /T

    James A. Galbraith wrote:
    Hi All,
    I've got an app I have put together that I am testing under several
    different environments, primarily Mandrake, Suse, and Windows. All
    three platforms are running wxPython 2.6. The problem I am having is
    this: not all of my color settings are being show under Suse.
    Specifically, my button foreground color and my panel background. The
    colors that are specifically set in my .xrc file are being shown with
    the default color (it appears) instead. The colors I have set for
    static text is K - it's just those darn buttons and panel backgrounds!
    Everything is just fine under Mandrake and Windows.

    Any ideas?

    Thanks

    Jim

    A. Galbraith
    James (AT) Galbraith (DOT) name

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.2 | | 1290 bytes | |

    not
    all of my color settings are being show under Suse. Specifically, my
    button foreground color and my panel background. The colors that are
    specifically set in my .xrc file are being shown with the default color
    (it appears) instead. The colors I have set for static text is K

    I think it isn't possible to change these colors, because the native widget
    used does not support it. My experience with this is, that you will get lots
    of problems like this under linux (kde and gnome) if you test it with fvwm95
    it will work fine. Most of this things work on windows and I don't know about
    the mac.

    Another problem could be, that your os is using themes, so the bg color will
    not be drawn. Try Panel.SetThemeEnabled(False). I think it should be possible
    to change the bg color for a panel. I don't have linux here at the moment,
    but tell me if you still have problems, I will look for that this evening.

    If you really need to change the foreground color of a button, use
    GenericButtons instead. See the demo for that.

    HTH Guido

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.3 | | 1305 bytes | |

    Did you get this sorted out? I am having this problem on SuSE 9.3 and
    SuSE 10 also and would like to know how to fix it.

    I tried different widget sets and it doesn't seem to make a difference.
    I also tried the SetThemeEnabled, but that doesn't work either.

    But it does work under FVWM.

    I am out of ideas.

    Thanks,

    Eric
    WX 2.6.1
    Suse 9.3 and 10

    James A. Galbraith wrote:
    Hi All,
    I've got an app I have put together that I am testing under several
    different environments, primarily Mandrake, Suse, and Windows. All
    three platforms are running wxPython 2.6. The problem I am having is
    this: not all of my color settings are being show under Suse.
    Specifically, my button foreground color and my panel background. The
    colors that are specifically set in my .xrc file are being shown with
    the default color (it appears) instead. The colors I have set for
    static text is K - it's just those darn buttons and panel
    backgrounds! Everything is just fine under Mandrake and Windows.

    Any ideas?

    Thanks

    Jim

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.4 | | 993 bytes | |

    Nevermind,

    remove the gtk-qt-engine package and it works.

    Thanks,
    Eric

    James A. Galbraith wrote:
    Hi All,
    I've got an app I have put together that I am testing under several
    different environments, primarily Mandrake, Suse, and Windows. All
    three platforms are running wxPython 2.6. The problem I am having is
    this: not all of my color settings are being show under Suse.
    Specifically, my button foreground color and my panel background. The
    colors that are specifically set in my .xrc file are being shown with
    the default color (it appears) instead. The colors I have set for
    static text is K - it's just those darn buttons and panel
    backgrounds! Everything is just fine under Mandrake and Windows.

    Any ideas?

    Thanks

    Jim

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.5 | | 777 bytes | |

    Eric Davis <endavis <atgmail.comwrites:

    Did you get this sorted out? I am having this problem on SuSE 9.3 and
    SuSE 10 also and would like to know how to fix it.

    I tried different widget sets and it doesn't seem to make a difference.
    I also tried the SetThemeEnabled, but that doesn't work either.

    Tried it on S.u.S.E 9.3. Works on gnome, fails on kde. I couldn't get it to
    work on kde. Tried SetThemeEnabled(False), tried
    SetBackgroundStyle(wx.BG_STYLE_CLUR) nothing worked. Sorry, I think you cannot
    do it on kde. :-(((

    Guido

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.6 | | 1670 bytes | |

    Eric, Guido,

    I tried all the tricks and couldn't get it to work on Suse (KDE). Works
    under Mandrake KDE. Interesting thing is that on Mandrake, the wx buttons
    don't take on the characteristics of the KDE style in effect, while on
    Suse they do. So it must have something to do with the KDE styles like
    Guido mentioned earlier.

    Looks like I'm going to head for bitmap buttons instead.

    I am still having problems with the background colors on my panels. I'm
    wondering if it is the same problem with KDE styles?

    Thanks for your help. I'll keep trying . . .

    Jim

    Wed, 30 Nov 2005 13:17:45 -0700, Guido Roth <RothGuido (AT) gmx (DOT) dewrote:

    Eric Davis <endavis <atgmail.comwrites:
    >
    >>

    >Did you get this sorted out? I am having this problem on SuSE 9.3 and
    >SuSE 10 also and would like to know how to fix it.
    >>

    >I tried different widget sets and it doesn't seem to make a difference.
    >I also tried the SetThemeEnabled, but that doesn't work either.
    >>

    >

    Tried it on S.u.S.E 9.3. Works on gnome, fails on kde. I couldn't get it
    to
    work on kde. Tried SetThemeEnabled(False), tried
    SetBackgroundStyle(wx.BG_STYLE_CLUR) nothing worked. Sorry, I think
    you cannot
    do it on kde. :-(((

    Guido
    --

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.7 | | 1491 bytes | |

    Eric,

    I tried it and it does work, however I can't ask any potential users to
    modify their systems in such a manner that they might not support other
    things they need.

    It's interesting that QT is affecting how wx works . . . sound familiar? .
    .

    Jim

    Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis (AT) gmail (DOT) comwrote:

    Nevermind,

    remove the gtk-qt-engine package and it works.

    Thanks,
    Eric

    James A. Galbraith wrote:
    >Hi All,
    >I've got an app I have put together that I am testing under several
    >different environments, primarily Mandrake, Suse, and Windows. All
    >three platforms are running wxPython 2.6. The problem I am having is
    >this: not all of my color settings are being show under Suse.
    >Specifically, my button foreground color and my panel background. The
    >colors that are specifically set in my .xrc file are being shown with
    >the default color (it appears) instead. The colors I have set for
    >static text is K - it's just those darn buttons and panel
    >backgrounds! Everything is just fine under Mandrake and Windows.
    >Any ideas?
    >Thanks
    >Jim
    >>

    >
    >


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.8 | | 1309 bytes | |

    Guido Roth wrote:
    Eric Davis <endavis <atgmail.comwrites:

    >Did you get this sorted out? I am having this problem on SuSE 9.3 and
    >SuSE 10 also and would like to know how to fix it.
    >>

    >I tried different widget sets and it doesn't seem to make a difference.
    >I also tried the SetThemeEnabled, but that doesn't work either.
    >>


    Tried it on S.u.S.E 9.3. Works on gnome, fails on kde. I couldn't get it to
    work on kde. Tried SetThemeEnabled(False), tried
    SetBackgroundStyle(wx.BG_STYLE_CLUR) nothing worked. Sorry, I think you cannot
    do it on kde. :-(((

    Guido
    Did you try my suggestion:

    open console do:

    unsetenv GTK_RC_FILES
    unsetenv GTK2_RC_FILES

    run your application from that shell

    Because this works for me under SuSE 9.1 though.

    /T

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.9 | | 2223 bytes | |

    Try this: I reinstalled the gtk-qt-engine package and put this before I
    initialized my wxapp:
    if platform.system() == 'Linux':
    if platform.dist()[0].lower() == 'suse':
    del os.environ['GTK_RC_FILES']
    del os.environ['GTK2_RC_FILES']

    That did it!

    Thanks Toni!

    Eric

    James A. Galbraith wrote:
    Eric,

    I tried it and it does work, however I can't ask any potential users to
    modify their systems in such a manner that they might not support other
    things they need.

    It's interesting that QT is affecting how wx works . . . sound familiar?
    . . .

    Jim

    Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis (AT) gmail (DOT) comwrote:

    >Nevermind,
    >>

    >remove the gtk-qt-engine package and it works.
    >>

    >Thanks,
    >Eric
    >>

    >James A. Galbraith wrote:

    Hi All,
    I've got an app I have put together that I am testing under several
    different environments, primarily Mandrake, Suse, and Windows. All
    three platforms are running wxPython 2.6. The problem I am having
    is this: not all of my color settings are being show under Suse.
    Specifically, my button foreground color and my panel background.
    The colors that are specifically set in my .xrc file are being
    shown with the default color (it appears) instead. The colors I
    have set for static text is K - it's just those darn buttons and
    panel backgrounds! Everything is just fine under Mandrake and
    Windows.
    Any ideas?
    Thanks
    Jim

    >>
    >>

    >
    >To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    >For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
    >>


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.10 | | 2705 bytes | |

    I think you should do it not only for
    SuSE. I think that these variables are
    standard gnome/gtk variables and if you
    want to be sure to disable the users theme
    you should remove them for all distributions.

    /T

    Eric Davis wrote:

    Try this: I reinstalled the gtk-qt-engine package and put this before I
    initialized my wxapp:
    if platform.system() == 'Linux':
    if platform.dist()[0].lower() == 'suse':
    del os.environ['GTK_RC_FILES']
    del os.environ['GTK2_RC_FILES']

    That did it!

    Thanks Toni!

    Eric

    James A. Galbraith wrote:
    >Eric,
    >>

    >I tried it and it does work, however I can't ask any potential users
    >to modify their systems in such a manner that they might not support
    >other things they need.
    >>

    >It's interesting that QT is affecting how wx works . . . sound
    >familiar? . . .
    >>

    >Jim
    >>

    >Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis (AT) gmail (DOT) comwrote:
    >>

    Nevermind,

    remove the gtk-qt-engine package and it works.

    Thanks,
    Eric

    James A. Galbraith wrote:
    Hi All,
    I've got an app I have put together that I am testing under
    several different environments, primarily Mandrake, Suse, and
    Windows. All three platforms are running wxPython 2.6. The
    problem I am having is this: not all of my color settings are
    being show under Suse. Specifically, my button foreground color
    and my panel background. The colors that are specifically set in
    my .xrc file are being shown with the default color (it appears)
    instead. The colors I have set for static text is K - it's just
    those darn buttons and panel backgrounds! Everything is just fine
    under Mandrake and Windows.
    Any ideas?
    Thanks
    Jim

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

    >>
    >>
    >>


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.11 | | 2942 bytes | |

    Eric,

    I just tried removing the two environment variables within my python
    source files. Didn't work. I had to remove them from my shell before I
    executed my python script. Any idea why mine won't work?

    This was under Suse as a guest to VMWare.

    Thanks

    Jim

    Tue, 06 Dec 2005 02:13:08 -0700, Toni Brkic <toni.brkic (AT) switchcore (DOT) com
    wrote:

    I think you should do it not only for
    SuSE. I think that these variables are
    standard gnome/gtk variables and if you
    want to be sure to disable the users theme
    you should remove them for all distributions.

    /T

    Eric Davis wrote:
    >Try this: I reinstalled the gtk-qt-engine package and put this before
    >I initialized my wxapp:
    >if platform.system() == 'Linux':
    >if platform.dist()[0].lower() == 'suse':
    >del os.environ['GTK_RC_FILES']
    >del os.environ['GTK2_RC_FILES']
    >That did it!
    >Thanks Toni!
    >Eric
    >James A. Galbraith wrote:

    Eric,

    I tried it and it does work, however I can't ask any potential users
    to modify their systems in such a manner that they might not support
    other things they need.

    It's interesting that QT is affecting how wx works . . . sound
    familiar? . . .

    Jim

    Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis (AT) gmail (DOT) com
    wrote:

    Nevermind,

    remove the gtk-qt-engine package and it works.

    Thanks,
    Eric

    James A. Galbraith wrote:
    Hi All,
    I've got an app I have put together that I am testing under
    several different environments, primarily Mandrake, Suse, and
    Windows. All three platforms are running wxPython 2.6. The
    problem I am having is this: not all of my color settings are
    being show under Suse. Specifically, my button foreground color
    and my panel background. The colors that are specifically set in
    my .xrc file are being shown with the default color (it appears)
    instead. The colors I have set for static text is K - it's just
    those darn buttons and panel backgrounds! Everything is just fine
    under Mandrake and Windows.
    Any ideas?
    Thanks
    Jim

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail:
    wxPython-users-help (AT) lists (DOT) wxwidgets.org


    >
    >To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    >For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
    >>

    >
    >


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.12 | | 1396 bytes | |

    Hey Jim,

    What version of SuSE are you running? I have tried this on 9.3 and 10,
    but then again I have a heavily modified version of both.

    1) Go to Idle and see if the platform module returns what it is suppose
    to, or put a print statement and see if the os.environ stuff is actually
    being done.

    2) Try taking out the SuSE specific stuff and make the lines look like:
    if platform.system() == 'Linux':
    del os.environ['GTK_RC_FILES']
    del os.environ['GTK2_RC_FILES']

    3) This must be done before you initialize you wx.App. , all
    the windows are already drawn by the time you remove the environment
    variable. (At least that was my experience.)

    We know that if you remove the environment variables before you start
    your script it works, so at least we have gotten that far.

    Eric

    James A. Galbraith wrote:
    Eric,

    I just tried removing the two environment variables within my python
    source files. Didn't work. I had to remove them from my shell before
    I executed my python script. Any idea why mine won't work?

    This was under Suse as a guest to VMWare.

    Thanks

    Jim

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.13 | | 2016 bytes | |

    Hi Eric,

    I'm running SuSE 9.3 (under VMWare). I had already done what you said,
    and the environment variables are indeed being removed. I had moved my
    logic all the way up the application - up to just after the wxApp
    initialization. I don't know why I didn't try ahead of the wxApp
    initialization. I moved it up before the wxApp call - and viola! Works
    great!

    Thanks again for your help.

    Jim

    Sun, 11 Dec 2005 07:10:05 -0700, Eric Davis <endavis (AT) gmail (DOT) comwrote:

    Hey Jim,

    What version of SuSE are you running? I have tried this on 9.3 and 10,
    but then again I have a heavily modified version of both.

    1) Go to Idle and see if the platform module returns what it is suppose
    to, or put a print statement and see if the os.environ stuff is actually
    being done.

    2) Try taking out the SuSE specific stuff and make the lines look like:
    if platform.system() == 'Linux':
    del os.environ['GTK_RC_FILES']
    del os.environ['GTK2_RC_FILES']

    3) This must be done before you initialize you wx.App. , all
    the windows are already drawn by the time you remove the environment
    variable. (At least that was my experience.)

    We know that if you remove the environment variables before you start
    your script it works, so at least we have gotten that far.

    Eric

    James A. Galbraith wrote:
    >Eric,
    >I just tried removing the two environment variables within my python
    >source files. Didn't work. I had to remove them from my shell before
    >I executed my python script. Any idea why mine won't work?
    >This was under Suse as a guest to VMWare.
    >Thanks
    >Jim
    >>

    >
    >


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.14 | | 733 bytes | |

    No problem, but thank Toni for the initial information.

    Eric

    James A. Galbraith wrote:
    Hi Eric,

    I'm running SuSE 9.3 (under VMWare). I had already done what you said,
    and the environment variables are indeed being removed. I had moved my
    logic all the way up the application - up to just after the wxApp
    initialization. I don't know why I didn't try ahead of the wxApp
    initialization. I moved it up before the wxApp call - and viola!
    Works great!

    Thanks again for your help.

    Jim

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.15 | | 969 bytes | |

    Toni,

    Thanks to you also!

    Jim

    Mon, 12 Dec 2005 06:52:58 -0700, Eric Davis <endavis (AT) gmail (DOT) comwrote:

    No problem, but thank Toni for the initial information.

    Eric

    James A. Galbraith wrote:
    >Hi Eric,
    >I'm running SuSE 9.3 (under VMWare). I had already done what you
    >said, and the environment variables are indeed being removed. I had
    >moved my logic all the way up the application - up to just after the
    >wxApp initialization. I don't know why I didn't try ahead of the
    >wxApp initialization. I moved it up before the wxApp call - and
    >viola! Works great!
    >Thanks again for your help.
    >Jim
    >>

    >
    >


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

Re: colors under KDE


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Python"

EMSDN.COM