>
> ok, i'm sure everyone's tired of hearing questions from me, but i
> have another one. i'm writing a chat app, and when a message
> comes in from a user, i need it to go to a window specificially
> set up for that user. i tried keeping track of the windows with
> a dictionary, but the windows do not seem to be destructed
> correctly when the close button is clicked, and come up and lock
> when the program is minimized.Give us more details on this please. (What you describe should work fine,
I've often kept references to frames and such in Python data structures with
no problem.) What makes you think the window is not being destoryed
correctly? Do you have an EVT_CLOSE handler?
yes.
Does it call either
event.Skip() or self.Destroy()?
yes, it calls self.Destroy(), and then calls a method in the parent to remove the frame from its list of frames.
What do you mean by "come up and lock when
the program is minimized" ?
if you open _any_ child windows with this, when you minimize the main frame, all of the frames you have ever opened come back up, and they cannot be closed (clicking the X doesn't work, neither does alt-f4) without restarting the main program.
-z
···
-----Original Message-----
From: Robin Dunn <robin@alldunn.com>
To: wxPython-users <wxpython-users@lists.sourceforge.net>
Date: Tuesday, December 19, 2000 11:08 PM
Subject: Re: [wxPython] keeping track of multiple windows?
--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users