<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/15696" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-05-01T12:14:37-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/15696</id>

		<entry>
		<author><name><![CDATA[logitech]]></name></author>
		<updated>2008-05-01T12:14:37-04:00</updated>

		<published>2008-05-01T12:14:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82661#p82661</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82661#p82661"/>
		<title type="html"><![CDATA[re]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82661#p82661"><![CDATA[
oh fine... got it now... thanks a lot,,, <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9897">logitech</a> — Thu May 01, 2008 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-04-30T10:38:58-04:00</updated>

		<published>2008-04-30T10:38:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82638#p82638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82638#p82638"/>
		<title type="html"><![CDATA[Beginner Help for using TK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82638#p82638"><![CDATA[
Yes, <strong class="text-strong">use wish, not tclsh</strong>.<br><br>wish can take a script-file as argument just like tclsh does...<br>You'll have to accept that whenever you're using tclsh, you can't have any fancy GUI or other graphics - just print text on stdout. If you want X11/Xwin/etc graphics, use the wish interpreter...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Apr 30, 2008 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[logitech]]></name></author>
		<updated>2008-04-30T08:56:52-04:00</updated>

		<published>2008-04-30T08:56:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82636#p82636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82636#p82636"/>
		<title type="html"><![CDATA[@nml375]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82636#p82636"><![CDATA[
Thanks!<br><br>But do you know how to use wish from within a file, so that the file containing Tk -commands executes on a tclsh shell?[/quote]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9897">logitech</a> — Wed Apr 30, 2008 8:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-04-30T06:28:12-04:00</updated>

		<published>2008-04-30T06:28:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82631#p82631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82631#p82631"/>
		<title type="html"><![CDATA[Beginner Help for using TK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82631#p82631"><![CDATA[
wish is a tcl/tk shell, whereas tclsh is a tcl shell... the difference is the Tk-extensions, which is basically a graphical interface API.<br><br>Much simplified, Tk-commands won't work in tclsh...<br><br>Edit:<br>Might add, wish is not a tcl command, but a separate interpreter. When you type "wish" in tclsh, tcl simply forks a child and executes the external application wish within here. Hence, any further text written on stdin is directed to wish, rather than tclsh. When scripting however, the whole script is executed in tclsh...<br><br>Solution: if you wish to develop Tk-tclets, use wish, not tclsh..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Apr 30, 2008 6:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[logitech]]></name></author>
		<updated>2008-04-30T06:23:08-04:00</updated>

		<published>2008-04-30T06:23:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82630#p82630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82630#p82630"/>
		<title type="html"><![CDATA[Beginner Help for using TK]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82630#p82630"><![CDATA[
I am a beginner to TCL programming and I'm facing a problem with using the "wish" command from within a file, though the same command works perfectly in the tclsh prompt.<br><br><br>The following commands in the TCL command prompt ( invoked with the tclsh command) work and a new frame is created.<br>---<br>% wish<br>% frame .mv_ex<br>wm title . "Title"<br>pack .mv_ex<br>--<br><br>When written in a file "trial.tcl", the wish command doesn't seem to work and returns an error.<br><br>Contents of the file "trial.tcl"<br>--<br>#!/usr/bin/wish -f<br>frame .mv_ex<br>wm title . "Animation in canvas"<br>pack .mv_ex<br>---<br>Error returned when "trial.tcl" is executed.<br>--<br>tclsh trial.tcl<br>invalid command name "frame"<br>    while executing<br>"frame .mv_ex"<br>    (file "trial.tcl" line 3)<br>---<br><br>Please help!! Thanks in advance. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9897">logitech</a> — Wed Apr 30, 2008 6:23 am</p><hr />
]]></content>
	</entry>
	</feed>
