wx.MessageDialog displayed without components inside

stas stas at tuxzilla.tuxhome
Sun Aug 14 09:43:36 EDT 2005


On Sat, 13 Aug 2005 16:34:17 -0700, perchef wrote:

> nope, I have put md.Destroy() away and it didn't change something.
> I don't think that's the problem because ShowModal() is a blocking
> method, execution is stop until you press YES or NO (in my case with
> wx.YES_NO)
Just a thought, do you cal the event loop ?
Because this minimal example just works like it should.

import wx
app = wx.PySimpleApp() 
md = wx.MessageDialog(None,'foo','bar',wx.YES_NO)
result = md.ShowModal()
app.MainLoop()

Stas




More information about the Python-list mailing list