wxTreeCtrl event bug only win32?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Krzysztof Kaczkowski

    wxTreeCtrl event bug only win32?

    Hello
    Im having problem, wxTreeCtrl generate 3 x EVT_TREE_SEL_CH ANGED on click
    item right button mouse. This problem only win32. Why?


    Simple example:

    from wxPython.wx import *
    class MyApp(wxApp):
    def OnInit(self):
    frame = wxFrame(NULL, -1, "wxPython",
    wxDefaultPositi on,wxSize(200,1 50))
    frame.Show(true )
    self.nr = 0
    self.SetTopWind ow(frame)
    self.ID_TREE = wxNewId()
    self.tree = wxTreeCtrl(fram e, self.ID_TREE)
    root = self.tree.AddRo ot('root test event')
    itm = self.tree.Appen dItem(root, 'Right click first item')
    itm = self.tree.Appen dItem(root, 'Right click next item')
    EVT_TREE_SEL_CH ANGED (self, self.ID_TREE, self.ItemChange d)
    return True

    def ItemChanged(sel f, event):
    self.nr += 1
    print self.nr

    app = MyApp(0)
    app.MainLoop()




  • Jarek Zgoda

    #2
    Re: wxTreeCtrl event bug only win32?

    Krzysztof Kaczkowski <krzysztof@py14 2.wroclaw.sdi.t pnet.pl> pisze:
    [color=blue]
    > Im having problem, wxTreeCtrl generate 3 x EVT_TREE_SEL_CH ANGED on click
    > item right button mouse. This problem only win32. Why?[/color]

    Maybe you should subscribe wxpython-users list and ask this question
    there? I'm pretty sure, that you will find much broader audience than
    here. And of course Robin Dunn also subscribes this list...

    --
    Jarek Zgoda
    Registered Linux User #-1
    http://www.zgoda.biz/ JID:jarek@jabbe rpl.org http://zgoda.jogger.pl/

    Comment

    Working...