Can somebody please tell me how to catch the CLOSE event of a wx.SplashScreen?
I wanna first disable a MDIParentFrame in the background and when wx.SplashScreen closes after x milliseconds I wanna Enable MDIParentFrame again.
I know there exists a Bind method but don't know how to use it right now.......
Thanks
Math
----- Original Message ----- From: "Math" <mathweijzen@home.nl>
To: <wxPython-users@lists.wxwidgets.org>
Sent: Sunday, February 19, 2006 4:02 PM
Subject: [wxPython-users] EVT_CLOSE and wx.SplashScreen
Hello everyone,
Can somebody please tell me how to catch the CLOSE event of a wx.SplashScreen?
I wanna first disable a MDIParentFrame in the background and when wx.SplashScreen closes after x milliseconds I wanna Enable MDIParentFrame again.
I know there exists a Bind method but don't know how to use it right now.......
Thanks
Math
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
I have a question concerning the protocol used for drag-and-drop.
I am writing an application that does drag-and-drop between MDI windows within the application. I've got this working happily. But the only thing that I seem to be able to pass from one object to another is a string. Is this really a limitation?
I would like to be able to pass arbitrary objects. I've tried writing my own DropTarget and DataObject, but I started running into OS errors. Is this something that anyone else has tried? With any success? Is it even theoretically possible?
Obviously there are various work-arounds if it isn't possible. If strings really are the only thing that can be passed I shall probably implement a simple message queue and pass the ID of a message on the queue. If it's not possible to pass the objects directly, what workarounds have other people used?
I have a question concerning the protocol used for drag-and-drop.
I am writing an application that does drag-and-drop between MDI windows
within the application. I've got this working happily. But the only thing
that I seem to be able to pass from one object to another is a string. Is
this really a limitation?
I would like to be able to pass arbitrary objects. I've tried writing my
own DropTarget and DataObject, but I started running into OS errors. Is
this something that anyone else has tried? With any success? Is it even
theoretically possible?
Obviously there are various work-arounds if it isn't possible. If strings
really are the only thing that can be passed I shall probably implement a
simple message queue and pass the ID of a message on the queue. If it's
not possible to pass the objects directly, what workarounds have other
people used?
Ben
I pass complex objects by pickling and unpickling them.
Hello
I have a question concerning the protocol used for drag-and-drop.
I am writing an application that does drag-and-drop between MDI windows within the application. I've got this working happily. But the only thing that I seem to be able to pass from one object to another is a string. Is this really a limitation?
I would like to be able to pass arbitrary objects. I've tried writing my own DropTarget and DataObject, but I started running into OS errors. Is this something that anyone else has tried? With any success? Is it even theoretically possible?
Obviously there are various work-arounds if it isn't possible. If strings really are the only thing that can be passed I shall probably implement a simple message queue and pass the ID of a message on the queue. If it's not possible to pass the objects directly, what workarounds have other people used?
If it's okay to pass objects by value (IOW, not a reference to an existing object but a copy of it) then you can use pickle to make a copy of the object as a string and unpickle it on the other side, as shown in the demo. If you need to pass references to existing objects to another part of your program, then the common way to do it is to pass a key used in a common data structure.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!