473,322 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to detect closing of wx.Panel?

Hi everybody,

I have poblem with detecting closing of wx.Panel by user. How to detect that
event?

The wx.EVT_CLOSE event concerns wx.Frame class only. Neither Close() nor
Destroy() aren't executed if the event occurs (if user close a panel). Thus
extanding these both methods doesn't make sens (I've tested that).

With many thanks &
Best wishes,
Jacek
Feb 19 '07 #1
2 1862
On Mon, 19 Feb 2007 01:18:11 +0000, Jacol wrote:
Hi everybody,

I have poblem with detecting closing of wx.Panel by user. How to detect that
event?
Don't know why you want to do that, but you could register with the
enclosing (hosting) widget.
The wx.EVT_CLOSE event concerns wx.Frame class only. Neither Close() nor
Destroy() aren't executed if the event occurs (if user close a panel). Thus
extanding these both methods doesn't make sens (I've tested that).

With many thanks &
Best wishes,
Jacek
Cheers
Morpheus

Feb 19 '07 #2
Morpheus wrote:
On Mon, 19 Feb 2007 01:18:11 +0000, Jacol wrote:
>Hi everybody,

I have poblem with detecting closing of wx.Panel by user. How to detect
that event?

Don't know why you want to do that, but you could register with the
enclosing (hosting) widget.
In my program a panel is related to a plugin's object. I mean if a panel is
closed the object have to be deleted also. Currently it doesn't work & i
have e memory leak. But i think i'll fixed a panel with its object
directly.

Currently i did it like that:
mainframe(wx.Frame)
subobject---pluginsmanager -->object (a hash session=>object )
subobject---panel

The panel send to pluginsmanager its own session no and received from that
XRC. But it is too complicated. I have to do it more simpler.

More @ pentrezy.cvs.sf.net//

Best wishes,
Jacek
Feb 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MuZZy | last post by:
HI, I have a user control, say with one textBox. I need the following: when the user closes form (either calling Form.Close, or pressing "X" or anyhow), UserControl copies a file from a...
6
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
4
by: Tom Vukovich | last post by:
Hi All, I have an application that I am porting from VB6 to VBNet and in vb6 i can detect the unloadMode. DotNet doesn't support this but I need the functionality. I understand the code should be in...
2
by: Sam | last post by:
Hi, I can't figure out how to detect when my mouse cursor leaves a panel control. It should not trigger the event (or do anything) when the mouse leave the panel but still is over a control that...
12
by: Patrick Dugan | last post by:
I have an vb.net application that is a module that uses a "application.run" in the sub main to start. There is no form involved (just a system tray icon) How can you detect when the application...
2
by: sylvain | last post by:
is there a simple way to detect a web window closing when the user hit the X of the browser ? I want to display a message to the user when he goes out of my web page. I try to detect it by using...
2
by: Midsomer | last post by:
Hi. I have an Access database with a form containing 4 datasheets and I allow the user to change column widths. On closing the form, a routine is fired that saves each column width to an INI file....
14
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought...
0
by: Abbas | last post by:
Hi, I have a nested DIV structure where both have an onclick event, hence I am cancelling the event from bubbling up to the outer DIV, but this has caused the Panel to remain opened when I click...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.