On Tuesday 27 November 2007 09:57:40 am Paul McNett wrote: > Ed Leafe wrote: > > On Nov 27, 2007, at 12:45 PM, Paul McNett wrote: > >> Not currently in Dabo, and perhaps not even possible in wxPython. I > >> tried something along the lines of: > >> > >> """ > >> tt = wx.ToolTip() > >> tt_win = tt.GetWindow() > >> tt_win.SetBackgroundColour((222,22,222)) > >> """ > >> > >> which yielded: > >> > >> AttributeError: NoneType object has no attribute "SetBackgroundColour" > >> > >> I bet the window isn't created until it is shown, and from a cursory > >> look there isn't an event to trap for when the window is actually > >> shown. > > > > GetWindow() returns the window that owns the tooltip. IOW: > > > > b = dabo.ui.dButton(self, ToolTipText="cool") > > win = b.GetToolTip().GetWindow() > > print b is win > > => True > > Ah, okay.
Although I don't get any error it still does not change the background color - oh well not a big deal. I was thinking I would change a few special tool tips to red to catch the users eye. -- John Fabiani _______________________________________________ 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/dabo-users/[EMAIL PROTECTED]
