Is there an event I can catch when a panel is being destroyed?
EVT_CLOSE is only for frames and dialogs and EVT_WINDOW_DESTROY doesn't
seem to do anything. Even overriding the panel's __del__ method doesn't
seem to have any effect.
Redhat 8.0
python-2.2.1-17
wxPythonGTK-py2.2-2.3.3.1-1
TIA,
···
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308
Is there an event I can catch when a panel is being destroyed?
EVT_CLOSE is only for frames and dialogs and EVT_WINDOW_DESTROY doesn't
seem to do anything. Even overriding the panel's __del__ method doesn't
seem to have any effect.
I found a workaround for what I needed (killing a thread associated with
a panel). An exception wxPyDeadObjectError is raised when referring to
a window that has been destroyed and this allows me to stop the thread.
However, I can't see this being useful in the general case so I still
wonder if some sort of event shouldn't be passed to child windows (I
would have thought EVT_WINDOW_DESTROY was it).
···
On Fri, 2002-12-06 at 09:00, Cliff Wells wrote:
Redhat 8.0
python-2.2.1-17
wxPythonGTK-py2.2-2.3.3.1-1
TIA,
--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308
I'd like to know if it is possible to put a popup menu on the tabs of the
notebook!
If it is possible.. please reply with some ideas... thanks!
Tiago Duarte Felix wrote:
I'd like to know if it is possible to put a popup menu on the tabs of the
notebook!
Hmm... Why would you want to?
···
It's probably possible, you can detect the click or mouseover with an EVT and
pop up a menu easily enough, but it would certainly confuse people -
no one would expect it. If you click on a notebook tab the notebook page
changes. How would you distinguish between that click and the one to pop
up the menu? Hmm, I've managed to confuse mysmelf.
···
#--------------------------------
Jeff Sasmor
jeff@sasmor.com
----- Original Message -----
From: "Tiago Duarte Felix" <tdf@mega.ist.utl.pt>
To: <wxPython-users@lists.wxwindows.org>
Sent: Wednesday, December 11, 2002 3:02 AM
Subject: [wxPython-users] Notebook & PopMenus
I'd like to know if it is possible to put a popup menu on the tabs of the
notebook!
If it is possible.. please reply with some ideas... thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org