1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
There is a new version of WPY available at www.python.org and
mirrors. There are a lot of changes, and more than the usual
number of incompatibilities. See docs/incompat.txt. These
changes warrant a change in version number to 0.50.
I am now testing using Tk version 4.2. Earlier versions of Tk
will mostly work, but I am starting to use the new native Tk
message boxes and standard dialog boxes, so you should upgrade
your Tk so that they are available.
Major changes are:
Added CWinApp::PumpMessages() to update the screen. Useful during
long calculations.
Wrote documentation for menus. Added menu method Post() which imitates
a menu button selection.
Fixed some bugs.
Added MoveBy(self, dx, dy) to move drawn objects. This is used instead
of assigning to the object's attributes (which you weren't supposed to
do anyway).
Added multipage printing support to CScrollView and CMenu.
Added CEdit::LimitText() to limit text length.
The new __init__ for frames, docs, and views has only one argument. See
incompat.txt.
Added template method OpenDocumentFile() to open a filename using the
specified template without selecting a menu item. This is the correct
way to open a document without asking for the file name.
There is now an extension to the WPY drawing model which makes it
efficient to update the screen by adding, deleting and re-drawing
the screen's drawn objects. See docs/draw.txt.
The new official way to control windows size is to set wpySizeX/Y in the
frame window __init__(self) method. Previously it was necessary to call
MoveWindowSize() after the window was created.
The Tk version now routes stdout to a message box just like the Windows
version. This can be controlled by wpy.wpyStdOut. See docs/invoca.txt.
The Tk version now uses the newer function tk_messageBox, so a newer Tk
version is required.
Added underlines to menu text by adding the "&" character.
Added MessageBeep() to startle the user.
Jim
|