Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 658865c

Browse files
committed
Chris Barker <[email protected]>:
Added summary of the strengths and weaknesses of the FrameWork module and fixed some typos.
1 parent f459a09 commit 658865c

1 file changed

Lines changed: 20 additions & 7 deletions

File tree

Doc/mac/libframework.tex

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@ \section{\module{FrameWork} ---
1818
The \module{FrameWork} is still very much work-in-progress, and the
1919
documentation describes only the most important functionality, and not
2020
in the most logical manner at that. Examine the source or the examples
21-
for more details.
21+
for more details. The following are some comments posted on the
22+
MacPython newsgroup about the strengths and limitations of
23+
\module{FrameWork}:
24+
25+
\begin{quotation}
26+
The strong point of \module{FrameWork} is that it allows you to break
27+
into the control-flow at many different places. \refmodule{W}, for
28+
instance, uses a different way to enable/disable menus and that plugs
29+
right in leaving the rest intact. The weak points of
30+
\module{FrameWork} are that it has no abstract command interface (but
31+
that shouldn't be difficult), that it's dialog support is minimal and
32+
that it's control/toolbar support is non-existent.
33+
\end{quotation}
34+
2235

2336
The \module{FrameWork} module defines the following functions:
2437

@@ -42,13 +55,13 @@ \section{\module{FrameWork} ---
4255
\end{funcdesc}
4356

4457
\begin{funcdesc}{MenuItem}{menu, title\optional{, shortcut, callback}}
45-
Create a menu item object. The arguments are the menu to crate the
46-
item it, the item title string and optionally the keyboard shortcut
58+
Create a menu item object. The arguments are the menu to create, the
59+
item item title string and optionally the keyboard shortcut
4760
and a callback routine. The callback is called with the arguments
4861
menu-id, item number within menu (1-based), current front window and
4962
the event record.
5063

51-
In stead of a callable object the callback can also be a string. In
64+
Instead of a callable object the callback can also be a string. In
5265
this case menu selection causes the lookup of a method in the topmost
5366
window and the application. The method name is the callback string
5467
with \code{'domenu_'} prepended.
@@ -79,8 +92,8 @@ \section{\module{FrameWork} ---
7992
Return a \code{(\var{left}, \var{top}, \var{right}, \var{bottom})}
8093
tuple suitable for creation of a window of given width and height. The
8194
window will be staggered with respect to previous windows, and an
82-
attempt is made to keep the whole window on-screen. The window will
83-
however always be exact the size given, so parts may be offscreen.
95+
attempt is made to keep the whole window on-screen. However, the window will
96+
however always be the exact size given, so parts may be offscreen.
8497
\end{funcdesc}
8598

8699
\begin{funcdesc}{setwatchcursor}{}
@@ -266,7 +279,7 @@ \subsection{ScrolledWindow Object \label{scrolledwindow-object}}
266279

267280
\begin{methoddesc}[ScrolledWindow]{do_activate}{onoff, event}
268281
Takes care of dimming/highlighting scrollbars when a window becomes
269-
frontmost vv. If you override this method call this one at the end of
282+
frontmost. If you override this method, call this one at the end of
270283
your method.
271284
\end{methoddesc}
272285

0 commit comments

Comments
 (0)