Re: wxPython GenericDirCtrl events

2006-03-08 Thread Iain King
Franz Steinhaeusler wrote: > On 8 Mar 2006 04:25:38 -0800, "Iain King" <[EMAIL PROTECTED]> wrote: > > > >at the end TestPanel.__init__ I added: > > > >self.Bind(wx.EVT_TREE_SEL_CHANGED, self.test, dir1) > >{...] > > Try this instead: > > t = dir1.GetTreeCtrl() > t.Bind(wx.EVT_TREE_SEL_CHANGED, se

Re: wxPython GenericDirCtrl events

2006-03-08 Thread Franz Steinhaeusler
On 8 Mar 2006 04:25:38 -0800, "Iain King" <[EMAIL PROTECTED]> wrote: > >at the end TestPanel.__init__ I added: > >self.Bind(wx.EVT_TREE_SEL_CHANGED, self.test, dir1) >{...] Try this instead: t = dir1.GetTreeCtrl() t.Bind(wx.EVT_TREE_SEL_CHANGED, self.test) -- Franz Steinhaeusler -- http://ma

wxPython GenericDirCtrl events

2006-03-08 Thread Iain King
I can't get these to work, and I can't work out what I'm doing wrong. I added the following lines to the GenericDirCtrl.py demo in the wxython demos folder: at the end TestPanel.__init__ I added: self.Bind(wx.EVT_TREE_SEL_CHANGED, self.test, dir1) and also added a test def to the class: def te