event generated by code, do not call handler

wx.CallNoPropg( textA.SetValue, 'when, in the course of human events,' )

Either an additional argument to HandleEvent, runsink= False, or a separate
HandleEventNoPropogate.

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Monday, January 14, 2008 2:44 PM

> if the user initiates it, but not if my code does. I'll call (3) myself
> synchronously, right after (1).
>
> In thread:
> for some stuff:
> mark the checkbox
> do my thing
>
>>From gui:
> onchecked:
> do my thing

Most people just put a guard condition in the event handler. IOW:

  def OnChecked(self, evt):
    if self.someFlag:
      return
    doMyThing()

and then make a wrapper for calling the method that does this:

  def CheckItem(self, item, val):
    self.someFlag = True
    self.tree.CheckItem(item, val)
    self.someFlag = False