On my ubuntu box by default there are annoying shadows surrounding all
4 sides of popup windows. Anyone know of a way to disable them in
wxPython? Or to check if they are enabled?
I'm going to have to move the popup window placement under linux
because of the shadows occluding my text and also FlatMenu uses popup
window's to recreate a menu bar popup menu, and placing a popup menu
right under the menu bar has the shadow occluding the menu bar which
looks bad. I assume the OS menu bar doesn't put shadows on all 4 sides
of the menu popups...
Check your window manager settings. It is likely the one that is drawing the shadows.
···
On 5/1/10 12:07 PM, Mark wrote:
On my ubuntu box by default there are annoying shadows surrounding all
4 sides of popup windows. Anyone know of a way to disable them in
wxPython? Or to check if they are enabled?
I'm going to have to move the popup window placement under linux
because of the shadows occluding my text and also FlatMenu uses popup
window's to recreate a menu bar popup menu, and placing a popup menu
right under the menu bar has the shadow occluding the menu bar which
looks bad. I assume the OS menu bar doesn't put shadows on all 4 sides
of the menu popups...
Yeah - I have them disabled for myself, but its on by default so I
need a way to check for it in my code so that I can move the window if
the shadows are enabled. I mean these are like 20 pixel shadows, and
obscures everything.
Of course it would be lovely if wxPython could disable them manually
as well. I would assume this ability must be in the window manager
call.
Mark
···
Check your window manager settings. It is likely the one that is
drawing the shadows.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en
All the application is able to do is to give "hints" to the window manager. It is entirely up to the WM to decide what to do with them, and IIRC there isn't much that can be done to actually control the WM. Then add to that the various toolkit layers like Xlib and GTK and Gnome...
If you're running on a Gnome WM then you can probably find the configuration item in gconf at runtime and test its value, but each WM is going to have their own configuration system and their own interpretation of what to do with the hints and how to display decorations around the windows, so it seems like a lot more work than it is worth to make this really reliable.
···
On 5/3/10 12:45 PM, Mark wrote:
Yeah - I have them disabled for myself, but its on by default so I
need a way to check for it in my code so that I can move the window if
the shadows are enabled. I mean these are like 20 pixel shadows, and
obscures everything.
Of course it would be lovely if wxPython could disable them manually
as well. I would assume this ability must be in the window manager
call.