Hi,
I use wx.SplitterWindow to split a frame. it works ok.
But when I double click the split border between two windows, one
of then disappear. Why does this happen, and how can I prevent this?
Thank you!
Hi,
···
On Mar 7, 2010, at 11:44 AM, zhengqing wrote:
Hi,
I use wx.SplitterWindow to split a frame. it works ok.
But when I double click the split border between two windows, one
of then disappear. Why does this happen, and how can I prevent this?
Thank you!
I think you can just Bind to EVT_SPLITTER_DCLICK and then just Veto the event.
Cody
Hi,
I tried this.
self.Bind(EVT_SPLITTER_DCLICK, self.ondoubleclick, ID)
ondoubleclick(self, event):
pass
But it doesn't work. The problem is still there.
···
On Mar 7, 11:49 am, Cody Precord <codyprec...@gmail.com> wrote:
Hi,
On Mar 7, 2010, at 11:44 AM, zhengqing wrote:
> Hi,
> I use wx.SplitterWindow to split a frame. it works ok.
> But when I double click the split border between two windows, one
> of then disappear. Why does this happen, and how can I prevent this?
> Thank you!I think you can just Bind to EVT_SPLITTER_DCLICK and then just Veto
the event.Cody
Hi,
···
On Mar 7, 2010, at 12:10 PM, zhengqing wrote:
Hi,
I tried this.self.Bind(EVT_SPLITTER_DCLICK, self.ondoubleclick, ID)
ondoubleclick(self, event):
passBut it doesn't work. The problem is still there.
I said Veto the event.
def ondoubleclick(self, event):
event.Veto()
Cody
p.s) please don't top post
Try calling event.Veto()
Also, you can prevent unsplit by setting the minimum pane size.
···
On 3/7/10 10:10 AM, zhengqing wrote:
Hi,
I tried this.self.Bind(EVT_SPLITTER_DCLICK, self.ondoubleclick, ID)
ondoubleclick(self, event):
passBut it doesn't work. The problem is still there.
--
Robin Dunn
Software Craftsman