On 30/04/2013 06:29, Robin Dunn wrote:
> Werner wrote:
>> Hi,
>>
>> I have a custom control which is based on the PopUp control sample in
>> the demo and in Phoenix this control can't be enabled.
>>
>> In Phoenix I use wx.Control instead of wx.PyControl in 2.9.5 (where it
>> works) and the control has an "Enable" method which enables the two
>> contained controls (a button and a textctrl).
>>
>> Any idea what might cause this - before I need to create a sample
>> app;-) .
>
> I think I'll need to see a sample on this one. Thanks.
I narrowed it down, but don't have a sample app for it yet.
When I create controls I do this (SearchCtrl is my popup based custom
control)
tctrl = searchctrl.SearchCtrl(tpane, wx.ID_ANY, name=ctrlname,
mask = u"*{%i}" % ctrl['dbLength'])
tctrl.Disable()
Later on when data is loaded I do tctrl.Enable(True), if I replace the
tctrl.Disable() with tctrl.Enable(False) then it works fine.
Werner