[wxPython-users] XML subclassing and wx.lib.masked.TimeCtrl

Robin Dunn robin at alldunn.com
Tue Sep 5 08:56:47 PDT 2006


Basil Shubin wrote:
> Robin Dunn wrote:
>> Basil Shubin wrote:
>>
>>>
>>> # get masked controls start/finish time
>>> self.startTime = xrc.XRCCTRL(self.parent, 'startTime')
>>> self.finishTime = xrc.XRCCTRL(self.parent, 'finishTime')
>>>

> For the above example I make following changes:
> 
> self.parent.Bind(wx.lib.masked.EVT_TIMEUPDATE,
>                  self.OnTimeUpdate,
>                  self.startTime.timeCtrl)
> 
> and I recive an error:
> 
> AttributeError: 'WorkoutTime' object has no attribute 'timeCtrl'
> 
> What is my fault?
> 

You probably want to use just self.startTime, don't you?  Are you 
expecting self.startTime to have a timeCtrl attribute?  Do you give it 
one in your code anyplace?


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list