I am offering version 3 of PAGE.
PAGE is an automatic GUI generator which bears a resemblance to Visual Basic. It allows one to easily create GUI windows containing a selection of Tk widgets working with Tcl/Tk 8.5 and Python 2.6 and featuring a straight-forward, visual paradigm. It is a Tcl/Tk program that generates a Python module that realizes the desired GUI.
PAGE is not an end-all, be-all tool, but rather one that attempts to ease the burden on the Python programmer. It is aimed at the user who will put up with a less-than-general GUI capability in order to get an easily generated GUI. It is a helper tool. It does not build an entire application but rather is aimed at building a single GUI window and the boiler plate code necessary for a running Python program.
I have included within this project python-mode extensions which I wrote to enhance emacs as a Python IDE. They may be downloaded from the Summary Page.
Currently PAGE and the resulting GUI windows have been tested on Linux and Win32.
It is important to know that a version of PAGE will require particular base versions of Python, and Tcl/Tk. You really better stick to the recommended versions.
Software versions utilized to test PAGE 3 are:
Tk Widgets supported:
Other features:
Installation is easier than ever. On Linux one downloads PAGE-xx.tgz and expand it is a directory. In Windows one executes page-xx.exe.
The prerequisites are Tcl/Tk 8.52 or later, Python 2.6 and the package pyttk 0.3 which is available at http://pypi.python.org/pypi/pyttk. Tcl/Tk 8.5.4 is needed to get access to the ttk widgets and Python 2.6 to get a version of tkinter that works with the ttk widgets without requiring any patches. One no longer has to deal with Tix. Pyttk augments Tkinter to support ttk widgets.
Tcl/Tk 8.5.2 or later is needed to run PAGE but is not needed to execute the generated Python code.
To download Page, go to the Summary Page from which you can download the most recent version. There is all manner of interesting information there and it is still easy to find the download stuff.
I really like emacs and so I have hacked together some things that improve its usage for me. The most important is a package of extensions to python-mode.el. Also, I have written several function which facilitate the insertion of debugging statements (pyp.el). More recently, I have fussed around with pycomplete and pymacs. Again, see python-mode extensions. All of these extensions are now available in the python-mode-extensions available on the Summary Page.
These are some simple extensions to python-mode.el that I recommend. Included are an improved mechanism for executing a python program from an emacs window and a simplified mechanism for getting directly into the python debugger. Functions are there to facilitate navigating the traceback stack in the event of an error. There is also code which allows PyChecker to be run from Emacs.
I often need to insert debugging statements into my programs. To
facilitate that I wrote several emacs functions. They are pyp for
"python print", ppy for "pretty print python", and ppyi for "pretty
print python include" ppy is activated by function key 12 (set in my
.emacs file) and requests the expression to be printed. A line is
then inserted into my code with the proper indentation and looks like
print "containing_class: containing_function: expression =",
expression # user_name pyp
The trailing user_name and pyp are there to facilitate removing the
statements at a later time.
The macros are in pyp.el. Comments at the beginning of the file show what is necessary to include in your .emacs file.
This is a nifty emacs extension which helps one to insert
attributes and functions into a python program. For instance, one can
type I got an early version which was rather limited. Looking around the
net, I found reference to an extension patch. When I applied the
patch, I saw that it was better. So I removed some unnecessary code
from the package and added the facility to distinguish functions and
to end up in the python buffer after the completion. There are two
pieces to the package - pycomplete.el which is loaded by emacs so must
be in the emacs load path and pycomplete.py which should go into an
active site-packages directory.
Liking both python and emacs, I think that Pymacs is a great
idea. I started looking more closely because pycomplete is built on
Pymacs. Pymacs is another example of a great piece of code with lousy
documentation. Recently, I found a site devoted to Pymacs; it
provides downloads and documentation. Also, I found that Pymacs is in
the Debian repositories.
The main problem I found was a paucity of examples.
This is example code based on Visual REGEXP. It has been updated to
use ttk::panedwindow's and it
Vrex provides most of
the obvious facilities of that program, hence the lower case in the
name.
From a career of programming I have observed some things that have
helped me quite a bit. See adages.
I am Don Rozenberg. I encourage
you to contact me with any problems, comments or suggestions.
Keep those cards and letters coming.
Email:
os.path.is
and a window will open up showing
all attributes and functions in os.path which begin with "is". Also,
functions are can be distinguished from simple attributes because they
are followed by "()". Pick one with the mouse and hit Pymacs
Small offering for your consideration.
Vrex - Visual regexp written in Python
Adages that have served me well
Author