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.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
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]

Reply via email to