<!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".&nbsp; I have included the relevant section at the bottom of 
this page.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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.&nbsp; 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.&nbsp; Also, FLTK is faster and more 
compact.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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.&nbsp; 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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<P><SMALL><TT><FONT face="Lucida Console" size=4>site</FONT></TT></SMALL></P>
<P><SMALL><TT><FONT 
face="Lucida Console">Append&nbsp;module&nbsp;search&nbsp;paths&nbsp;for&nbsp;third-party&nbsp;packages&nbsp;to&nbsp;sys.path.<BR>&nbsp;<BR>****************************************************************<BR>*&nbsp;This&nbsp;module&nbsp;is&nbsp;automatically&nbsp;imported&nbsp;during&nbsp;initialization.&nbsp;*<BR>****************************************************************<BR>&nbsp;<BR>In&nbsp;earlier&nbsp;versions&nbsp;of&nbsp;Python&nbsp;(up&nbsp;to&nbsp;1.5a3),&nbsp;scripts&nbsp;or&nbsp;modules&nbsp;that<BR>needed&nbsp;to&nbsp;use&nbsp;site-specific&nbsp;modules&nbsp;would&nbsp;place&nbsp;``import&nbsp;site''<BR>somewhere&nbsp;near&nbsp;the&nbsp;top&nbsp;of&nbsp;their&nbsp;code.&nbsp;&nbsp;Because&nbsp;of&nbsp;the&nbsp;automatic<BR>import,&nbsp;this&nbsp;is&nbsp;no&nbsp;longer&nbsp;necessary&nbsp;(but&nbsp;code&nbsp;that&nbsp;does&nbsp;it&nbsp;still<BR>works).<BR>&nbsp;<BR>This&nbsp;will&nbsp;append&nbsp;site-specific&nbsp;paths&nbsp;to&nbsp;to&nbsp;the&nbsp;module&nbsp;search&nbsp;path.&nbsp;&nbsp;On<BR>Unix,&nbsp;it&nbsp;starts&nbsp;with&nbsp;sys.prefix&nbsp;and&nbsp;sys.exec_prefix&nbsp;(if&nbsp;different)&nbsp;and<BR>appends&nbsp;lib/python&lt;version&gt;/site-packages&nbsp;as&nbsp;well&nbsp;as&nbsp;lib/site-python.<BR>On&nbsp;other&nbsp;platforms&nbsp;(mainly&nbsp;Mac&nbsp;and&nbsp;Windows),&nbsp;it&nbsp;uses&nbsp;just&nbsp;sys.prefix<BR>\(and&nbsp;sys.exec_prefix,&nbsp;if&nbsp;different,&nbsp;but&nbsp;this&nbsp;is&nbsp;unlikely).&nbsp;&nbsp;The<BR>resulting&nbsp;directories,&nbsp;if&nbsp;they&nbsp;exist,&nbsp;are&nbsp;appended&nbsp;to&nbsp;sys.path,&nbsp;and<BR>also&nbsp;inspected&nbsp;for&nbsp;path&nbsp;configuration&nbsp;files.<BR>&nbsp;<BR>A&nbsp;path&nbsp;configuration&nbsp;file&nbsp;is&nbsp;a&nbsp;file&nbsp;whose&nbsp;name&nbsp;has&nbsp;the&nbsp;form<BR>&lt;package&gt;.pth;&nbsp;its&nbsp;contents&nbsp;are&nbsp;additional&nbsp;directories&nbsp;(one&nbsp;per&nbsp;line)<BR>to&nbsp;be&nbsp;added&nbsp;to&nbsp;sys.path.&nbsp;&nbsp;Non-existing&nbsp;directories&nbsp;(or<BR>non-directories)&nbsp;are&nbsp;never&nbsp;added&nbsp;to&nbsp;sys.path;&nbsp;no&nbsp;directory&nbsp;is&nbsp;added&nbsp;to<BR>sys.path&nbsp;more&nbsp;than&nbsp;once.&nbsp;&nbsp;Blank&nbsp;lines&nbsp;and&nbsp;lines&nbsp;beginning&nbsp;with<BR>\code{#}&nbsp;are&nbsp;skipped.&nbsp;Lines&nbsp;starting&nbsp;with&nbsp;\code{import}&nbsp;are&nbsp;executed.<BR>&nbsp;<BR>For&nbsp;example,&nbsp;suppose&nbsp;sys.prefix&nbsp;and&nbsp;sys.exec_prefix&nbsp;are&nbsp;set&nbsp;to<BR>/usr/local&nbsp;and&nbsp;there&nbsp;is&nbsp;a&nbsp;directory&nbsp;/usr/local/lib/python1.5/site-packages<BR>with&nbsp;three&nbsp;subdirectories,&nbsp;foo,&nbsp;bar&nbsp;and&nbsp;spam,&nbsp;and&nbsp;two&nbsp;path<BR>configuration&nbsp;files,&nbsp;foo.pth&nbsp;and&nbsp;bar.pth.&nbsp;&nbsp;Assume&nbsp;foo.pth&nbsp;contains&nbsp;the<BR>following:<BR>&nbsp;<BR>&nbsp;&nbsp;#&nbsp;foo&nbsp;package&nbsp;configuration<BR>&nbsp;&nbsp;foo<BR>&nbsp;&nbsp;bar<BR>&nbsp;&nbsp;bletch<BR>&nbsp;<BR>and&nbsp;bar.pth&nbsp;contains:<BR>&nbsp;<BR>&nbsp;&nbsp;#&nbsp;bar&nbsp;package&nbsp;configuration<BR>&nbsp;&nbsp;bar<BR>&nbsp;<BR>Then&nbsp;the&nbsp;following&nbsp;directories&nbsp;are&nbsp;added&nbsp;to&nbsp;sys.path,&nbsp;in&nbsp;this&nbsp;order:<BR>&nbsp;<BR>&nbsp;&nbsp;/usr/local/lib/python1.5/site-packages/bar<BR>&nbsp;&nbsp;/usr/local/lib/python1.5/site-packages/foo<BR>&nbsp;<BR>Note&nbsp;that&nbsp;bletch&nbsp;is&nbsp;omitted&nbsp;because&nbsp;it&nbsp;doesn't&nbsp;exist;&nbsp;bar&nbsp;precedes&nbsp;foo<BR>because&nbsp;bar.pth&nbsp;comes&nbsp;alphabetically&nbsp;before&nbsp;foo.pth;&nbsp;and&nbsp;spam&nbsp;is<BR>omitted&nbsp;because&nbsp;it&nbsp;is&nbsp;not&nbsp;mentioned&nbsp;in&nbsp;either&nbsp;path&nbsp;configuration&nbsp;file.<BR>&nbsp;<BR>After&nbsp;these&nbsp;path&nbsp;manipulations,&nbsp;an&nbsp;attempt&nbsp;is&nbsp;made&nbsp;to&nbsp;import&nbsp;a&nbsp;module<BR>named&nbsp;sitecustomize,&nbsp;which&nbsp;can&nbsp;perform&nbsp;arbitrary&nbsp;additional<BR>site-specific&nbsp;customizations.&nbsp;&nbsp;If&nbsp;this&nbsp;import&nbsp;fails&nbsp;with&nbsp;an<BR>ImportError&nbsp;exception,&nbsp;it&nbsp;is&nbsp;silently&nbsp;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 &amp; 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&nbsp; 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>&nbsp;</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>