Hi Nate,
Thanks for the including a flatnotebook for Dabo. And it works well too.
However, I was noticing that the wxPython demo included a way to set the
background color of each tab. dPageStyled does not expose a property for
setting the background color of a tab. Reading the wxPython flatnotebook.py
code I found the code that does the changes. And I discovered that setting
the color only works if the TabStyle = "VC8".
pc._pagesInfoVec[tabIdx].SetColour(tabColor)
So I thought I'd be able to do the same with the following code:
pageFrame = pgf = dabo.ui.dPageStyled(self, TabStyle = "VC8", ShowNavButtons =
False, ShowMenuCloseButton = False, MenuBackColor =
dabo.dColors.colorTupleFromHex('#550000'))
pgf.appendPage(pgCls=CompanyPanel, caption="Company Information")
pgf.appendPage(pgCls=RolesUserPanel, caption="Groups and Users")
pgf.SelectedPageNumber=0
#below does nothing with any color I choose
pgf._pages._pagesInfoVec[0].SetColour(wx.Color(0,0,0))
Can you tell me what I doing wrong?
Thanks
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]