Frank Millman wrote:
Hi all
Attached is a simple program. There is a frame with a button. Clicking the
button launches a dialog. I want to add various steps while setting up the
dialog, so I have the following -def onClick(self, evt):
self.dlg = MyDialog(self)
wx.CallAfter(self.showDlg)
wx.CallAfter(self.startDlg)def showDlg(self):
self.dlg.ShowModal()
self.dlg.Destroy()def startDlg(self):
self.dlg.t1.SetFocus()This works with MSW, and it worked with GTK2 using wxPython 2.6 (I skipped
2.7).With 2.8, startDlg() is only called after the dialog is destroyed, which is
obviously too late for my purposes.
There was something about this on wx-dev a couple weeks ago, but I didn't pay very close attention to it. I'll go back and restart the conversation. Basically something was done about blocking the gtk idle handler (where pending wx events are processed) or not unblocking it, or something like that, while a modal dialog is shown. As seen from your example this is clearly a bug.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!