From: Axel Kohlmeyer (akohlmey_at_cmm.chem.upenn.edu)
Date: Fri Aug 10 2007 - 10:20:47 CDT

On Fri, 10 Aug 2007, John Stone wrote:

hi!

not so sure whether this will work with TkConsole?
this code is scary and does some pretty unusual tricks
to do what it does and access to stdio is not like
on a regular console. for puts/gets i would recommend
to run from the regular terminal window.

otherwise, you can write your own tk based dialogs.
checkout tk_popup or some of the custom generic
popups shipped with the distribution.

cheers,
   axel.

JS>
JS> Hi,
JS> You can use puts/gets, to read and write to the console, files, etc:
JS> http://www.tcl.tk/man/tcl8.4/TclCmd/gets.htm
JS>
JS> Cheers,
JS> John Stone
JS> vmd_at_ks.uiuc.edu
JS>
JS> On Fri, Aug 10, 2007 at 05:14:46PM +0200, Philipp Schön wrote:
JS> >
JS> > dear users,
JS> > i want to avoid hard-coding so how can i make a standard i/o when running a tcl program in vmd?
JS> > i want to set certain variables by entering them in the VMD TkConsole when asked. what is the syntax for this?
JS> > thanks in advance
JS> > philipp
JS> >
JS> > __________________________________________________________________________
JS> > Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
JS> > Mehr Infos unter http://produkte.web.de/club/?mc=021131
JS> >
JS>
JS>
JS>
JS>

-- 
=======================================================================
Axel Kohlmeyer   akohlmey_at_cmm.chem.upenn.edu   http://www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.