<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Wesley,</FONT></DIV>
<DIV><FONT face=Arial size=2>I don't know if Python 2.3 is any different than
2.1 (which is what I use) but the answer to your question lies in reading about
sys.path and "site". I have included the relevant section at the bottom of
this page.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As to your second question, for a number of
reasons, including the depth and breadth of available support, applications,
stability, feature richness, etc, I prefer using wxPython. On the other
hand, VTK and ITK examples are built using FLTK so if you plan on using them,
then FLTK will be the way to go. Also, FLTK is faster and more
compact.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am actually interested to hear from the
developers as to the full merits of FLTK vs. wxPython (or wxWindows) as I have
not read a full comparison to my satisfaction yet. It does seem though
that most scientific applications are favoring FLTK over wxWindows, though the
logic behind it escapes me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>good luck,</FONT></DIV>
<DIV><FONT face=Arial size=2>Arash</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<P><SMALL><TT><FONT face="Lucida Console" size=4>site</FONT></TT></SMALL></P>
<P><SMALL><TT><FONT
face="Lucida Console">Append module search paths for third-party packages to sys.path.<BR> <BR>****************************************************************<BR>* This module is automatically imported during initialization. *<BR>****************************************************************<BR> <BR>In earlier versions of Python (up to 1.5a3), scripts or modules that<BR>needed to use site-specific modules would place ``import site''<BR>somewhere near the top of their code. Because of the automatic<BR>import, this is no longer necessary (but code that does it still<BR>works).<BR> <BR>This will append site-specific paths to to the module search path. On<BR>Unix, it starts with sys.prefix and sys.exec_prefix (if different) and<BR>appends lib/python<version>/site-packages as well as lib/site-python.<BR>On other platforms (mainly Mac and Windows), it uses just sys.prefix<BR>\(and sys.exec_prefix, if different, but this is unlikely). The<BR>resulting directories, if they exist, are appended to sys.path, and<BR>also inspected for path configuration files.<BR> <BR>A path configuration file is a file whose name has the form<BR><package>.pth; its contents are additional directories (one per line)<BR>to be added to sys.path. Non-existing directories (or<BR>non-directories) are never added to sys.path; no directory is added to<BR>sys.path more than once. Blank lines and lines beginning with<BR>\code{#} are skipped. Lines starting with \code{import} are executed.<BR> <BR>For example, suppose sys.prefix and sys.exec_prefix are set to<BR>/usr/local and there is a directory /usr/local/lib/python1.5/site-packages<BR>with three subdirectories, foo, bar and spam, and two path<BR>configuration files, foo.pth and bar.pth. Assume foo.pth contains the<BR>following:<BR> <BR> # foo package configuration<BR> foo<BR> bar<BR> bletch<BR> <BR>and bar.pth contains:<BR> <BR> # bar package configuration<BR> bar<BR> <BR>Then the following directories are added to sys.path, in this order:<BR> <BR> /usr/local/lib/python1.5/site-packages/bar<BR> /usr/local/lib/python1.5/site-packages/foo<BR> <BR>Note that bletch is omitted because it doesn't exist; bar precedes foo<BR>because bar.pth comes alphabetically before foo.pth; and spam is<BR>omitted because it is not mentioned in either path configuration file.<BR> <BR>After these path manipulations, an attempt is made to import a module<BR>named sitecustomize, which can perform arbitrary additional<BR>site-specific customizations. If this import fails with an<BR>ImportError exception, it is silently ignored.</FONT></TT></SMALL></P></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=a1303s@hotmail.com href="mailto:a1303s@hotmail.com">Wesley Brooks</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 23, 2004 8:36
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Running VTK 4.2 with
Python 2.3 & GUI preferences</DIV>
<DIV><BR></DIV>
<DIV>
<P><FONT size=2>Dear Users</P>
<DIV>
<DIV class=RTE>
<P>I have only recently started programming in order to over come some
problems with areas in my research so please keep replies at an entry
level!</P>
<P>Some one has installed VTK 4.2 on my machine and is now running fine with
python 2.1. I also have python 2.3 running on this machine but it will not run
the same programs saying there is no module named vtk. How do I get python 2.3
to talk to VTK?</P>
<P>On another note I'm starting to investigate building a GUI for what I have
done so far. I have seen a few options like Tkinter and wxPython, and
using a GUI builder using wxPython such as Boa Constrictor. What are the
recommendations on this and are they all compatible with VTK?</P>
<P>Yours Faithfully,</P>
<P>Wesley Brooks</P>
<P><FONT face=Arial></FONT> </P>
<P></FONT><BR><BR></P></DIV></DIV></DIV><BR clear=all>
<HR>
Half price modem, FREE connection and one month FREE - <A
href="http://g.msn.com/8HMBENUK/2755??PS=">click here to sign up to BT
Broadband.</A> _______________________________________________ This is the
private VTK discussion list. Please keep messages on-topic. Check the FAQ at:
<HTTP: vtkfaq cgi-bin public.kitware.com>Follow this link to
subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
</BLOCKQUOTE></BODY></HTML>