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 OK - it's just those darn buttons and panel backgrounds! Everything is just fine under Mandrake and Windows.
Any ideas??
Thanks
Jim
···
--
James A. Galbraith
James@Galbraith.name
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 OK
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
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 OK - it's just those darn buttons and panel backgrounds! Everything is just fine under Mandrake and Windows.
Any ideas??
Thanks
Jim
--James A. Galbraith
James@Galbraith.name
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
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 OK - it's just those darn buttons and panel backgrounds! Everything is just fine under Mandrake and Windows.
Any ideas??
Thanks
Jim
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 OK - it's just those darn buttons and panel backgrounds! Everything is just fine under Mandrake and Windows.
Any ideas??
Thanks
Jim
Eric Davis <endavis <at> gmail.com> writes:
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_COLOUR) nothing worked. Sorry, I think you cannot
do it on kde. :-(((
Guido
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
···
On Wed, 30 Nov 2005 13:17:45 -0700, Guido Roth <RothGuido@gmx.de> wrote:
Eric Davis <endavis <at> gmail.com> writes:
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_COLOUR) nothing worked. Sorry, I think you cannot
do it on kde. :-(((
Guido
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
James A. Galbraith
James@Galbraith.name
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
···
On Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis@gmail.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 OK - 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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
James A. Galbraith
James@Galbraith.name
Guido Roth wrote:
Eric Davis <endavis <at> gmail.com> writes:
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_COLOUR) 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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
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
On Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis@gmail.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 OK - 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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
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
On Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis@gmail.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 OK - 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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
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
···
On Tue, 06 Dec 2005 02:13:08 -0700, Toni Brkic <toni.brkic@switchcore.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
On Wed, 30 Nov 2005 09:42:46 -0700, Eric Davis <endavis@gmail.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 OK - 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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
James A. Galbraith
James@Galbraith.name
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. Otherwise, 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
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
···
On Sun, 11 Dec 2005 07:10:05 -0700, Eric Davis <endavis@gmail.com> wrote:
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. Otherwise, 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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
James A. Galbraith
James@Galbraith.name
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