Instructions for a windows installation:
These instruction can be found in c:\page\doc.
The new installation package is page-2.2.exe. Running the
installation program page-2.2.exe does not install Python, Tcl, or
Tix. It will be necessary to do those installs
separately. Fortunately, they are all standard installations. The
steps necessary are the following:
- Install Python-2.2 Download Python-2.2.exe and from
www.python.org. The default installation directory is
C:\Python22 and that is where I put it. To complete the
installation you will need to add the installation directory
to your path.
- Install Tcl. The version that I have been testing with is
ActiveTcl8.3.4.1-8.win32-ix86.exe which is available from
activestate.com. You may think that Python installs tcl
support, but support for executing tcl scripts is missing and
that is required for running PAGE. I recommend that you
install Tcl into c:\Tcl; it's the default directory. To
complete the installation you will need to add the
{installation directory}/bin to your path. That is, if you did
use c:\Tcl as the installation directory then add C:\Tcl\bin
to your path.
- Install Tix into the same directory into which you installed
Tcl. Unfortunately, the Tix home
page does not as yet provided a Tix installer for
windows. As a temporary expedient I have provided tix8183_setup.exe.
When executing tix8183_setup.exe, use as the installation
directory the one used for Tcl. I suspect that soon an
official tix installer will be available. Obviously, that is
the one you will want to use.
- Execute page-2.2.exe to install PAGE and when given a chance to
select the input directory make your choice. Obviously, I like
c:\page. I recommend that you add the installation directory
to your path.
As part of executing page-2.2.exe, Tix files will be
transfered from the Tcl installation directory to the Python
installation directory. This is necessary for executing Tix
under Python. A dialog box will appear allowing you to cancel
this transfer. In general it is necessary to do it at least
once following the Tix install However, it is not necessary
to do it repeatedly.
This step installs an icon on the desktop. For it to work
properly the script winpg.bat mentioned below needs to be set
correctly.
- The final step is to modify the script winpg.bat in the PAGE
install directory to set the correct value of VTCL_HOME to be the
name of the page installation directory.
The windows installation of PAGE will move the necessary Tix files
from the Tcl installation directory into the Python installation
directory tree. So it is necessary to have Tcl and Python installed
when you are installing PAGE.
The installation can be tested by executing the following
command:
c:\page\winpg
which will test the PAGE installation itself. When it comes
up, try
File -> Open -> examples/t3.tcl.
The other interesting command is:
python t3.py
which runs the the python GUI generated by PAGE.
If things don't seem to work you can try the following steps to
confirm the installation.
-
Enter the command:
tix8183
just to see if tix is there. A two windows should open and one will
present you with a prompt. If you see that just close it.
-
Change to the subdirectory examples/tix and execute the command:
tix8183 tixwidgets.tcl
You should see an notebook widget that contains most of the tix
widgets.
This will confirm that tix is there and operating.
-
Change to the directory examples/PyTix and execute
python tixwidgets.py
You should see the same demo as the previous example.
This will confirm that tix is working under python.