Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / lib / python2.4 / site-packages / Pmw / Pmw_1_2 / doc / starting.html
CommitLineData
920dae64
AT
1
2 <html>
3 <head>
4 <meta name="description" content="Pmw - a toolkit for building high-level compound widgets in Python">
5 <meta name="content" content="python, megawidget, mega widget, compound widget, gui, tkinter">
6 <title>Getting started with Pmw</title>
7 </head>
8
9 <body bgcolor="#ffffff" text="#000000" link="#0000ee"
10 vlink="551a8b" alink="ff0000">
11
12 <h1 ALIGN="CENTER">Getting started with Pmw</h1>
13
14<center><P ALIGN="CENTER">
15<IMG SRC = blue_line.gif ALT = "" WIDTH=320 HEIGHT=5>
16</p></center>
17
18<dl>
19<dt> <h2>Introduction</h2></dt><dd>
20<p>
21This document describes how to fetch and install Pmw, and how to run
22the demonstrations and tests.
23
24</p>
25
26</dd>
27<dt> <h2>Requirements</h2></dt><dd>
28<p>
29Pmw.1.2 requires the _tkinter and Tkinter modules. It works
30with python versions 1.5.2 and greater (tested up to 2.2.1) and Tk
31versions 8.0 and greater (tested up to 8.3.2).
32
33</p>
34
35<p>
36If the BLT extension to Tk is present, Pmw will use the BLT busy
37command during modal dialogs to display a clock cursor. Also, the
38Pmw.Blt interface to the BLT busy, graph, stripchart, tabset and
39vector commands will be available. BLT versions 2.4i and greater are
40supported (tested up to 2.4u). You can find BLT at
41<a href="http://www.tcltk.com/blt/">http://www.tcltk.com/blt/</a>.
42
43</p>
44
45</dd>
46<dt> <h2>Distribution and installation</h2></dt><dd>
47<p>
48Releases of the Pmw distribution are available via http from
49<code>http://download.sourceforge.net/pmw/</code>. This release is available
50as <a href="http://download.sourceforge.net/pmw/Pmw.1.2.tar.gz">
51<code>Pmw.1.2.tar.gz</code></a>, released on 5 August 2003.
52This is a compressed tar file. Under Linux, Unix, etc, you will need to
53unpack it using <code>tar</code> and you may also need to use
54<code>gzip</code> or <code>gunzip</code> to uncompress it.
55Under Microsoft Windows, you will need a program such as WinZip (<a
56href="http://www.winzip.com">http://www.winzip.com</a>) that can
57unpack the gzipped tar files. You may need to change the suffix of
58the file to <strong>.tgz</strong> for WinZip to recognise it.
59
60</p>
61
62<p>
63
64This will unpack into a directory named Pmw. You now need to put this
65directory somewhere python can find it, preferably in one of the
66standard places, such as in the <code>site-packages</code> directory
67(eg: <code>/usr/lib/python2.2/site-packages/Pmw</code>) or the
68<code>sys.prefix</code> directory (eg: <code>C:\Program
69Files\Python\Pmw</code> or <code>/usr/lib/python2.2</code>).
70
71</p>
72
73<p>
74
75For example, under Unix, assuming you have placed the tar file in the
76<code>/tmp</code> directory, you can simply run the following
77commands:
78
79</p>
80
81<dl>
82<dd>
83<pre>
84cd /usr/lib/python2.2/site-packages
85gunzip /tmp/Pmw.1.2.tar.gz (or gzip -d /tmp/Pmw.1.2.tar.gz)
86tar xvf /tmp/Pmw.1.2.tar
87</pre>
88</dd>
89</dl>
90
91<p>
92
93If you do not have write permission for these standard directories,
94place the Pmw
95directory somewhere on your <code>PYTHONPATH</code> or
96<code>sys.path</code>. If this is not possible, place the Pmw
97directory somewhere else and add the parent directory to your
98<code>PYTHONPATH</code> or <code>sys.path</code>.
99
100</p>
101
102<p>
103
104If you have previously installed Pmw version 0.6 or later, then the
105new version can share the same <code>Pmw</code> directory as the
106previous versions. You will need to perform the <code>tar</code>
107extraction in the directory containing (that is, the parent directory
108of) the existing <code>Pmw</code> directory. By default, your
109applications will use the most recent version of Pmw. If required,
110the function <code>Pmw.setversion()</code> can be used to specify a
111version to be used. See the reference manual for details. If you are
112no longer using the older versions, you can safely remove the
113corresponding subdirectories from the <code>Pmw</code> directory.
114
115</p>
116
117<p>
118
119If you need assistance in installing BLT under Unix, please contact me
120(<a href="mailto:gregm@iname.com"><i>gregm@iname.com</i></a>) and I
121will try to help. For other operating systems, such as Microsoft or
122Macintosh, you should try asking the python newsgroup. If anyone can
123give me a description of how to install BLT under other operating
124systems please contribute it and I will place it here.
125
126</p>
127
128</dd>
129<dt> <h2>Documentation</h2></dt><dd>
130<p>
131The <code>doc</code> directory for each Pmw version contains all the
132documentation for that version of Pmw. See the local <a
133href="index.html">home page</a> for a complete list of documents. The
134files in this directory are also available from the <a
135href="http://pmw.sourceforge.net/">official Pmw home page</a>.
136
137</p>
138
139<p>
140An excellent tutorial and reference covering the Pmw interface to the
141powerful Blt graph widget, "<a
142href="http://www.ifi.uio.no/~hpl/Pmw.Blt/doc/">A User's Guide to
143