[wxPython] Focus Problem

Yes, you may be right. My program is 'procedural' and does not use MainLoop,
so it worked out well that the code Paul sent me didn't use MainLoop either.
I thought that might have something to do with it and I played with idle
time events but nothing seemed to work. I realize most gui apps should
operate within the space of an event driven loop, but for my application it
didn't make sense.

Thanks for checking this Robin, and thanks for all of your work. wxPython is
great!

Dan

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Monday, January 22, 2001 12:59 PM
To: wxpython-users@lists.sourceforge.net
Subject: Re: [wxPython] Focus Problem

I found that if I remove the call to .Destroy for the dialog just previous
to wxDialog (the wxSingleChoiceDialog) then the custom wxDialog DOES

RECIEVE

FOCUS!!!

It works fine here (wx 2.3pre, win2k) so I can't be sure, but it may have
something to do with the fact that it is not running within MainLoop. The
system does some house cleaning activities during idle time and actually
doing the cleanup of Destroy'd windows is one of them.

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

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

"Rolander, Dan" wrote:

Yes, you may be right. My program is 'procedural' and does not use MainLoop,
so it worked out well that the code Paul sent me didn't use MainLoop either.
I thought that might have something to do with it and I played with idle
time events but nothing seemed to work. I realize most gui apps should
operate within the space of an event driven loop, but for my application it
didn't make sense.

I've tried to dothis a number of times in the past, and always failed. I
couldn't get dialogs to display at all without a mainloop. I'd love to
see a sample of what you have done, It dould be very useful.

Just to make sure we are talking about the samething, what I have in mid
is the following: And application that starts up, runs through a
process, while perhaps asking the user a couple of questions via a set
of dialog boxes. Often what I am doing is writing a small script that
does some kind of text file conversion. I might need to ask the user for
a filename or two, and maybe a couple of parameters. I don't want to
have to write a whole event driven GUI around it!

Thanks for any sample code you can send me.

-Chris

···

--
Christopher Barker,
Ph.D.
cbarker@jps.net --- --- ---
http://www.jps.net/cbarker -----@@ -----@@ -----@@
                                   ------@@@ ------@@@ ------@@@
Water Resources Engineering ------ @ ------ @ ------ @
Coastal and Fluvial Hydrodynamics ------- --------- --------
------------------------------------------------------------------------
------------------------------------------------------------------------

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users