List Info

Thread: SplitterWindow OnDoubleClickSash problem




SplitterWindow OnDoubleClickSash problem
country flaguser name
United States
2007-10-03 14:11:40
class MySplitterWindow(wx.SplitterWindow):
     def OnDoubleClickSash(self, event):
         print "OnDoubleClickSash event"
         #
         # I want to disable this, but somehow it gets done
anyway even though
         # I don't call event.Skip() ????
         #
         return

in my Frame I have bound the EVT_SPLITTER_DCLICK to this
method

When I run this the print statement executes, but the sash
bar is delete even 
though I didn't call event.Skip().  I thought I could trap
this and disable 
double-clicking on the sash this way.  Am I missing
something?

Thanks in advance for your assistance.

Regards,
Larry Bates


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


Re: SplitterWindow OnDoubleClickSash problem
country flaguser name
United States
2007-10-03 15:53:24
Larry Bates wrote:
> class MySplitterWindow(wx.SplitterWindow):
>     def OnDoubleClickSash(self, event):
>         print "OnDoubleClickSash event"
>         #
>         # I want to disable this, but somehow it gets
done anyway even 
> though
>         # I don't call event.Skip() ????
>         #
>         return
> 
> in my Frame I have bound the EVT_SPLITTER_DCLICK to
this method
> 
> When I run this the print statement executes, but the
sash bar is delete 
> even though I didn't call event.Skip().  I thought I
could trap this and 
> disable double-clicking on the sash this way.  Am I
missing something?

It's a wxNotifyEvent so try calling event.Veto()


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )