I always find interpretting the wx manuals near nigh impossible. I want to do
something really simple, change the colour on the caption bar,
I put this in my program:
def GetDockArt(self):
return self._mgr.GetArtProvider()
Changing the font size of the caption worked ok with this:
self.GetDockArt().SetFont(wx.aui.AUI_DOCKART_CAPTION_FONT,
(wx.Font(15,wx.SWISS,wx.NORMAL,wx.NORMAL,False,'')))
But this dosn't, so I'm obviously not interpreting the docs properly:
self.GetDockArt().SetColour(wx.aui.AUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR,wx.Color(216,19,19,255))
I looked at the demo and what gets returned from the colour dialog when I
chose a colour and it gives this:
9 (value of var in the code)
(216,19,19,255) = the returned colour stuff.
So just how does one interpret instructions from the wxmanual like:
wxAuiDockArt::SetColour
virtual void SetColour(int id, const wxColor& colour)
Set a certain setting with the value colour.
id can be one of the colour values of wxAuiPaneDockArtSetting.
How does one translate into practice the wxColor&color?
I must have fluked it for the font above, but what is the correct way to write
it.
Anyone who does bother replying, please be really verbose, and explain down to
the last comma, otherwise if you make a general reference I just won't be
able to understand it.
Thanks in anticipation
Richard