On Friday, July 01, 2011 02:01:25 pm Jacek Kałucki wrote:
> Hi.
>
> I have a serious problem with dRadioList control.
> Here is a description of first stage - excerpt from the internal
> checkForFocus function. I can't believe it happens but it really does.
> Here is the code:
>
> <code>
> print "Before >", self._lastGotFocusEvent, timeCalled
> if self._lastGotFocusEvent != timeCalled:
> print "After >", self._lastGotFocusEvent, timeCalled
> </code>
>
> and this is the output:
>
> <stdout>
> Before > 1309551324.8 1309551324.8
> After > 1309551324.8 1309551324.8
> </stdout>
>
> Both variables are a 'time' type.
> Generally, why the 'After' line appears, since expression should evaluate
> to false? What do you think about this situation?
Could it be that the "print" does include all the digits?
<code>
app = self.Application
if app is None or app.ActiveForm == self.Form:
self.raiseEvent(dEvents.LostFocus, wxEvt)
</code>
Paul, if I use this control in a dialog what does self.Form point too?
Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]