Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pmw color scheme and K-desktop environment color scheme....

0 views
Skip to first unread message

Rob Hooft

unread,
Jan 22, 1999, 3:00:00 AM1/22/99
to
My python/Tk project uses the command

Pmw.setscheme(root,background=bgcolor)

with different (pastel) bgcolors for each invocations. This way, all
dialog and status windows can be easily associated with a project.

Unfortunately, I have noticed, the "color scheme" of the K Desktop
environment (KDE) seems to have priority over my own background color,
even though my application is not a KDE application. What can I do to
force my own background colors under KDE?

Regards,
--
===== R.H...@EuroMail.net http://www.xs4all.nl/~hooft/rob/ =====
===== R&D, Nonius BV, Delft http://www.nonius.nl/ =====
===== PGPid 0xFA19277D ========================== Use Linux! =========

Rune Braathen

unread,
Jan 22, 1999, 3:00:00 AM1/22/99
to
On 22 Jan 1999 11:19:34 +0100, Rob Hooft <R.H...@EuroMail.com> wrote:
>My python/Tk project uses the command
>
> Pmw.setscheme(root,background=bgcolor)
>
>with different (pastel) bgcolors for each invocations. This way, all
>dialog and status windows can be easily associated with a project.
>
>Unfortunately, I have noticed, the "color scheme" of the K Desktop
>environment (KDE) seems to have priority over my own background color,
>even though my application is not a KDE application. What can I do to
>force my own background colors under KDE?

Right. I suspect that you have an 8-bit framebuffer with 256 colors only,
which KDE (or Netscape) happily gobbles up, allocating all the colors. So,
when you try to allocate the background color for your widget(s), the X
server will provide the widget with a 'closest match', thereby refusing your
impressionistic Renoir-esque pastel background colors. :)

You can:

a) Live with it
b) Tell KDE to be less trigger-happy when allocating colors
c) Restrict netscape to '-ncols 64' (this makes Chelsea Clinton look better).
d) When intstantiating your toplevel Frame, specify option colormap='new'

This problem is strictly not python-related, but the ever-returning 'color
allocation in X11'-scheme.

(Disclaimer: I am merrily unfamiliar with the KDE window manager, your color
problems _can_ occur because it chooses to behave like no other window
manager, overriding the X11 clients explicit request for a background color,
but I doubt it ...)

--
runeb


Chris Spiegel

unread,
Jan 22, 1999, 3:00:00 AM1/22/99
to
On 22 Jan 1999 11:19:34 +0100,
Rob Hooft <R.H...@EuroMail.com> wrote:
>Unfortunately, I have noticed, the "color scheme" of the K Desktop
>environment (KDE) seems to have priority over my own background color,
>even though my application is not a KDE application. What can I do to
>force my own background colors under KDE?

Try KCC -> Desktop -> Styles. Then uncheck "apply kde style to all apps",
or whatever it is... That should do the trick (probably after restarting X).

Chris
--
// () __ _ _ _ _
// // //\\ // // \\// Please change orj to org
//__ // // // //_// //\\ in my address to send mail.
___matrix @ xirtam.org___ I apologize for this, but I also hate spam.

Rob Hooft

unread,
Jan 25, 1999, 3:00:00 AM1/25/99
to
>>>>> "CS" == Chris Spiegel <mat...@xirtam.orj> writes:

CS> On 22 Jan 1999 11:19:34 +0100, Rob Hooft <R.H...@EuroMail.com>
CS> wrote:

>> Unfortunately, I have noticed, the "color scheme" of the K Desktop
>> environment (KDE) seems to have priority over my own background
>> color, even though my application is not a KDE application. What
>> can I do to force my own background colors under KDE?

CS> Try KCC -> Desktop -> Styles. Then uncheck "apply kde style to
CS> all apps", or whatever it is... That should do the trick
CS> (probably after restarting X).

That last sentence in brackets did the trick... I had this option
unchecked, but did not yet login from the beginning. Thanks!

0 new messages