These are the changes which may cause problems with programs written for previous versions of wpy. If you get Python tracebacks for changed arguments or names, try looking in the current documentation. -------------- Version 0.52 15 Nov 1997 -------------- Version 0.51 12 June 1997 Changed to Visual C++ 4.2, so new DLLs in msoftdll.exe are required for Windows 95 and NT (not 3.1). -------------- Version 0.50 15 January 1997 The constructors for CFrameWnd, CMDIChildWnd, CDocument and CView's were changed to a single __init__(self) argument. The old __init__'s had additional arguments for the template, doc and frame. This should only be a problem for your __init__ methods which call the old base class __init__. Just remove all args except self for all frame, doc and view __init__ methods. The handler names for list boxes were changed from OnListBox to OnListBoxWPYTEXT and from OnListBoxDbl to OnListBoxDblWPYTEXT, where "WPYTEXT" means the value of wpyText, the name of the list box. You can set wpyText to "" to reproduce the old behavior. These new names are more convenient when there are many list boxes in a window. The program name in sys.argv[0] was changed to be the name of the script on the command line as in standard Python. If you were moving drawn objects by changing their obj.wpyLocX/Y, this no longer works. Instead, call obj.MoveBy(dx, dy). The (undocumented) arguments to CDrawnText::__init__() were changed. For Tk, the output of print now goes to a message box. -------------- Version 0.43 29 October 1996 The name of the DLL containing frozen modules was changed from "pyfrzmo.dll" to the name of the executable file plus ".dll". The name of the exported symbol in the frozen modules DLL was changed to PyImport_FrozenModules due to a name change in Python 1.4. See docs/invoca.txt. -------------- Version 0.40 19 January 1996 ----------------------- Name of list box scroll bar size changed from wpyVScrollSize to wpyScrollWidth. The size of wpyCharSizeX was changed from the size of "m" to the size of "0" because that is what Tk uses, and because "0" is a more average size. -------------- Version 0.31 6 October 1995 ----------------------- CWpyDialog.DoModal() now returns button numbers 0, 1, 2, ... instead of 1, 2, 3, .... This class was undocumented, so you didn't use it, right? See dialog.txt. Undocumented CDialog method WpyPhysOnOK() changed to OnEnter(). -------------- Version 0.30 10 September 1995 ----------------------- The methods CPen::Destroy(), CBrush::Destroy() and CFont::Destroy() were removed. They are no longer required, as the system will destroy these resources itself. The second argument of CFont() (font size) was changed from pixels to printer's points. So change: f = CFont("swiss", 35 * DC.wpyOnePoint) to f = CFont("swiss", 35). The return value of DrawText() was changed from (width, height) to an object with the usual attributes wpySizeX/Y. The new return value is more generally useful. So change: (w, h) = DrawText("Hello") to obj = DrawText("Hello") w = obj.wpySizeX h = obj.wpySizeY -------------- Version 0.23 6/1995 --------------------------------- An extra argument was added to the template constructor. Enter the menu class or None. This replaces the old method of specifying menus. See the app.txt file for documentation. The Create() methods now generally take no arguments. Arguments are part of the __init__ method. The arguments to __init__ for documents, frames and views were changed: CDocument, CFrameWnd, CMDIChildWnd, CMDIFrameWnd, CView, CScrollView, CEditView. The CEditView methods were changed to support indexing based on line number and character number. See the docs.