Robin Dunn wrote: > You can paint with the themed background by using a special brush. See > wx/lib/stattext.py for an example. In 2.8 it's something like this: > > if wx.Platform == "__WXMAC__": > backBrush.MacSetTheme(kThemeBrushDialogBackgroundActive)
cool! thanks! Paul, I don't know off the top of my head if you can pass a brush into FloatCanvas, and I don't have tome to look into it now but give it a try. > In 2.9 it will change and be a bit better integrated, and something like > this will do it: > > if wx.Platform == "__WXMAC__": > themeColour = > wx.MacThemeColour(kThemeBrushDialogBackgroundActive) > backBrush = wx.Brush(themeColour) > > You can get the theme constant like this: > > if wx.Platform == "__WXMAC__": > from Carbon.Appearance import kThemeBrushDialogBackgroundActive Would there be any point in having a wx Abstraction: themeColour = wx.ThemeColour(ThemeBrushDialogBackgroundActive) backBrush = wx.Brush(themeColour) and have it work on all platforms? Or is there only a point on the Mac. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
