wx event raising

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimscafe
    New Member
    • Mar 2007
    • 8

    wx event raising

    I have a radiobox in wzPython which defaults to Selection(0)

    When a different selection is made with the mouse it raises an event
    wx.EVT_RADIOBOX - which calls a method I created

    def EvtRadioBox(sel f, event):
    etc.

    How do I call the EvtRadioBox for the initial setting?

    In my __init__ method I can call the method self.EvtRadioBo x, but I would need to pass an event as a parameter and I don't know how to create an event object.

    Or is this the best way of achieving this?
    (EvtRadioBox carries out some processing and alters the display to show what
    is in the selection.

    I checked out an earlier thread in this forum about button events, but I don't think it did what I wanted (just changed the label on a button).

    An additional requirement might be to make a selection and raise the event programatically .
    radiobox.SetSel ection(0) - then raise the event or call the event method.
Working...