Re: Need Help With Tk Using Komodo
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Need Help With Tk Using Komodo

From: Jeff Hobbs <jeffh@activestate.com>
Date: Wed Mar 01 2006 - 17:25:52 CET

jwhill2000@yahoo.com wrote:
> Hi, appreicate your patience with this potentially lamo question. I am
> trying out Komodo IDE to build a simple GUI. Komodo creates one file
> for the gui dialog code and another in which I can write my own code.
> My problem is this, for whatever reason, I cannot manipulate widgets in
> the manner I am accustomed to, as in,
>
> .mytextbox insert end "some text".
>
> I always get "invalid command" when trying this. Its obvious I don't
> have a good grasp of the program scope and how to connect source code
> with Komodo. Any ideas on what I'm doing wrong?

It depends on how you are creating the widgets in your UI,
but the Komodo GUI Builder allows you to name them, and that
is the name they will have in the UI code, based off $ROOT.
Also note that namespaces are used ... so it really all
depends on the context. You also have to make sure that
your code is running at the right time, as the UI must first
be created. The docs highlight this lifecycle.

-- 
   Jeff Hobbs, The Tcl Guy
   http://www.ActiveState.com/, a division of Sophos
Received on Sun Apr 30 02:19:11 2006