google-code-export / ulipad

Automatically exported from code.google.com/p/ulipad
0 stars 0 forks source link

Dir Browser fails to expand on double click #186

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Windows XP, Python 2.6.2, wxPython 2.8.10.1 Ulipad 3.9.

When double click on the Dir Browser, the folder fails to expand. The same
problem can be seen on the wxPython demo TreeCtrl as well.

The fix I found is to "skip" the event of EVT_TREE_ITEM_ACTIVATED.

    def OnSelected(self, event):
        item = event.GetItem()
        if not self.is_ok(item): return
        filename = self.get_node_filename(item)
        if self.isFile(item):
            document = self.mainframe.editctrl.new(filename)
            if document:
                wx.CallAfter(document.SetFocus)
        event.Skip()  #added to fix the expand issue

Original issue reported on code.google.com by demaples...@googlemail.com on 17 Jun 2009 at 9:26

GoogleCodeExporter commented 9 years ago

Original comment by limo...@gmail.com on 30 Dec 2009 at 8:58