[Dev] application.dialogs.Util.ok vs. wxMessageBox

John Anderson john at osafoundation.org
Fri Jan 6 18:18:34 PST 2006


Hi:

I was reviewing the flickr parcel with Ted. We noticed:

application.dialogs.Util.ok(wx.GetApp().mainFrame, _(u"Flickr Error"), 
errText)

The wx.GetApp().mainFrame seemed awkward. Not only should it not 
necessary, the Util routine should use NULL internally instead of the 
mainFrame.

However, wx already has methods for simple dialogs like Ok, Cancel, etc. 
which take the form:

wxMessageBox(errText, _(u"Flickr Error"), wx.OK)

I was suggesting to Ted that that the native wx routines were about as 
simple as any wrapper routines we could write so I would prefer to get 
rid of the wrappers. Ted on the otherhand thought that for simple 
parcels you shouldn't need to know any wx so the wrapper routines were 
appropriate.

So I thought I'd ask for opinions on which option other people prefer.

John


More information about the Dev mailing list