Hello
Now, the question is...WHY does this happen?
Is it by design or is it a bug?
I suppose it's a bug ... :
from wxPython import wx
if __name__ == '__main__':
app = wx.wxPySimpleApp()
frame = wx.wxFrame(None, -1, 'Focus test')
frame.Show(1)
scd = wx.wxSingleChoiceDialog(None, 'msg', 'cap', ['single', 'choice'])
if scd.ShowModal() == wx.wxID_OK:
scd.Destroy()
# frame.RemoveChild(scd) <-- fix; should be called by Destroy()
wxd = wx.wxDialog(frame, -1, 'No focus after pressing Ok?')
wxd.ShowModal()
Bye
MEMO 01/22/01 18:34:39 (763 Bytes)
···
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users