Re: How to change the background color of the radiobox group control to match the color of its window
Dietmar Schwertberger <[email protected]> Sun, 25 Aug 2019 20:32:38 +0200
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 25.08.2019 20:10, M A wrote: > I had saved and close a wxg file with the background color of the > RadioBox set to System Color wxSYS_COLOUR_BACKGROUND. When I opened > the wxg file and double-clicked on the frame in the tree, I saw many > of these messages in the terminal: 02:01:21 PM: Debug: wxColour::Set - > couldn't set to colour string 'wxSYS_COLOUR_BACKGROUND'. I think this > is a bug. > I did try NullColour. It still sets the background color to a color that is slightly different from the background color of the window. I would guess that this is all platform specific. SYS_COLOUR_BACKGROUND seems to be the desktop background colour. Not sure whether you intended this. Does the generated code look OK? I get something like this and it seems to work on Windows (loading, editing and preview): self.radio_box_1.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BACKGROUND)) The 'colour string' in your error message seems strange. Regards, Dietmar