From: Kevin A. <al...@se...> - 2004-08-15 18:08:36
|
Additional dialog migration issues below. ka On Aug 14, 2004, at 12:08 PM, Kevin Altis wrote: > Dialogs > The dialog module is now a thin wrapper around the wx.lib.dialogs > module. The biggest change to your code is that the result of dialogs > is now a DialogResults class instead of a dictionary. See the dialogs > sample for examples of usage, but in general if you had something like > result['accepted'] it will now be result.accepted. The order of the message and title args for any dialogs that take both has been reversed from previous versions of PythonCard. The message arg comes before title now. For example, dialog.singleChoiceDialog(self, "message", "title", ['one', 'two', 'three']) Any optional style args now use wx constants rather the old dialog module aliases. For example, you'll need to use wx.TE_PASSWORD or wx.TE_MULTILINE for the textEntryDialog if you want one of those styles. |