Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SpecTcl

Status
Not open for further replies.

skottieb

Programmer
Jun 26, 2002
118
AU
Hello,
I am trying to get extra widgets on Spec tcl, if anyone has used it?? It is a GUI for making GUI's, I need to send program output to the gui but cant seem to see a widget for it, I am using it to create perl interfaces, even when I config it for TCL interfaces it dosent show any more widgets, I do have TK installed on my system, it is a windows 2000 box skottieb:)
 
Maybe you missed to use pack (or grid, or place)? Only toplevel windows are displayed once created.

After a widget is created (i.e.
Code:
text .t
) it must be placed with a geometry manager like pack, grid or place. After a widget (and all its parents) is placed, it can be displayed.
Sometimes you need
Code:
update
to enter the windows event loop before the widgets be displayed on the screen.

Exemple with Tcl/Tk:
Code:
toplevel .top
text .top.t
button .top.b -text exit -command exit
pack .top.t .top.b
# only before heavy calculus
update

Good luck

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top