From: Alex T. <al...@tw...> - 2006-02-28 13:35:31
|
Christoph Zwerschke wrote: > Steve Christensen wrote: > >>> How can I force PythonCard to redraw the component immediately, so >>> that it is visible already during the long operation? >> >> >> Try wx.Yield() > > > Thanks, that was exactly what I was missing. I just saw the wx docu > says it's better to use self.application.Yield() in newer programs. > This has also the advantage that I don't need to import wx in my > PythonCard app. There's nothing terrible about "import wx"; in fact, it's much better to have that than the "from wx import *" that you presumably have right now to allow the use of self.SetCursor(wxHOURGLASS_CURSOR) It would be a good thing to change that to import wx and do self.SetCursor(wx.HOURGLASS_CURSOR) Not important - but a good practice to follow. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006 |