Seems that this problem exists long time ago:
Well, I got surprised because I develop on Linux and it was looking fine, but then I went to try on Windows with a black background, and white foreground (and text was not showing
).
On Mac it was not so bad, but the color seems to be automatic, not the one I define.
I have prepared recordings of my RIDE project, on different operating systems:
Any hope in getting this fixed?
I believe wxWidgets itself does not support this feature, so there isn’t much that can be done in wxPython.
I see two possibilities:
- Ask on the wxWidgets mailing list/GitHub tracker to see if implementing this is feasible - and if anyone is willing to implement it
- Attempt it the hard (and possibly incomplete) way, as I did a long time ago when I created EnhancedStatusBar (Infinity77). This approach does not cover all use cases, so you may need to extend the widget (for example to display menus’ long help on a status bar field).
Andrea.
1 Like
I adapted your code for modern Python and wxPython (20 years later
), but I could not get the elements correctly positioned.
Here is the link for your modernized scripts: Phoenix/samples/statusbar at Andrea_Gavana_Demos · HelioGuilherme66/Phoenix · GitHub
And below a screen capture on Fedora 41 (KDE/Plasma):
Can you please help me fixing it?
Hello Helio,
I’ve tried updating the widget with varying degrees of success. While the controls are now in the correct position, I still can’t center them vertically and horizontally in the status bar.
EnhancedStatusBarDemo.py (13.7 KB)
EnhancedStatusBar.py (5.4 KB)
Here are my latest personal attempts to change the foreground and background colors of the status bar on Windows:
test.zip (8 KB)
Regards
1 Like
The attached ones seem to be kind of ok, at least on Windows…
EnhancedStatusBar.py (10.7 KB)
EnhancedStatusBarDemo.py (12.3 KB)
1 Like
Hello Andrea,
Unfortunately, the file you provided must not be the corrected file, as nothing changes:
However, here’s what I get with your modified source code that I submitted previously:
Thank you for still being there for the wxpython community after all these years ! 
Hello,
Did you try also the updated demo? The code is definitely not the same - there’s also a new SetSize override.
My revision is a 5-minutes quick and dirty fix, it’s likely that your version is better in many respects.
Good afternoon Andrea,
"""Did you try also the updated demo?"""
Yes, the first screenshot is of the file you corrected.
EnhancedStatusBar.py (9.7 KB)
EnhancedStatusBarDemo.py (12.5 KB)
and
EnhancedStatusBar - optimized version.py (7.8 KB)
The files I’m attaching today seem to fix the latest issues encountered yesterday.
I also plan to test on Linux and macOS.
Regards