wxPython GenericDirCtrl events

Iain King iainking at gmail.com
Wed Mar 8 13:51:40 CET 2006


Franz Steinhaeusler wrote:
> On 8 Mar 2006 04:25:38 -0800, "Iain King" <iainking at gmail.com> 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

Perfect.  Thanks!

Iain




More information about the Python-list mailing list