From: Kevin A. <ka...@us...> - 2004-08-26 18:37:02
|
Update of /cvsroot/pythoncard/PythonCard/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv662/docs Modified Files: migration_guide.txt Log Message: fixed CustomDialog standalone bug Index: migration_guide.txt =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/docs/migration_guide.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** migration_guide.txt 25 Aug 2004 18:08:18 -0000 1.5 --- migration_guide.txt 26 Aug 2004 18:36:52 -0000 1.6 *************** *** 25,34 **** --------------------- The Stack class was removed, so the first line of your .rsrc.py file needs to have the 'stack' and 'Stack' strings replaced with 'application' and 'Application' as shown below. ! { 'stack':{ 'type':'Stack', to ! { 'application':{ 'type':'Application', In addition, in your source, self.stack.app references are now just self.application. --- 25,37 ---- --------------------- The Stack class was removed, so the first line of your .rsrc.py file needs to have the 'stack' and 'Stack' strings replaced with 'application' and 'Application' as shown below. + :: ! { 'stack':{ 'type':'Stack', to ! :: ! ! { 'application':{ 'type':'Application', In addition, in your source, self.stack.app references are now just self.application. *************** *** 39,45 **** PythonCardApp was renamed to Application. The application initialization and startup code for your module will need to be updated to use the Application class. For example, here's the new code for the minimal sample. ! if __name__ == '__main__': ! app = model.Application(Minimal) ! app.MainLoop() --- 42,50 ---- PythonCardApp was renamed to Application. The application initialization and startup code for your module will need to be updated to use the Application class. For example, here's the new code for the minimal sample. ! :: ! ! if __name__ == '__main__': ! app = model.Application(Minimal) ! app.MainLoop() *************** *** 72,81 **** ---------------- All imports from the wxPython.wx package have been changed to use the new wx package. For example: ! from wxPython import wx has been changed to ! import wx The biggest impact is that the wx prefix is no longer used (e.g. wx.wxFrame is now wx.Frame) in the framework or samples except for wxPython constants. --- 77,89 ---- ---------------- All imports from the wxPython.wx package have been changed to use the new wx package. For example: + :: ! from wxPython import wx has been changed to ! :: ! ! import wx The biggest impact is that the wx prefix is no longer used (e.g. wx.wxFrame is now wx.Frame) in the framework or samples except for wxPython constants. *************** *** 109,114 **** 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. --- 117,123 ---- 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. |