Tcl Tk
Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


The source of theses pages is the excellent Tcl/Tk Quick Reference Guide.
I apologize , because there're some tex commands in the text, if you see some error please send me an email

General Tk Widget Information


All widget are created with widget pathname [ option1 value1 [ option2 ... ] ] where widget is the Tcl command corresponding to the class of widget desired (eg. button ) and pathname is a string which will be used to identify the newly created widget. In general, a widget name is the concatenation of its parent`s name followed by a period (unless the parent is the root window ``.``) and a string containing no periods (eg. .mainframe.btnframe.btn1). Widget configuration options may be passed in the creation command. Options begin with a ``-`` and are always followed by a value string. After creation, options may be changed using the configure widget command pathname configure option1 value1 [ option2 ... ] and queried using the cget command pathname cget option Some of the widget options which multiple widgets support are described here for brevity. For options that take screen units, values are in pixels unless an optional one letter suffix modifier is present --- c (cm), i (inch), m (mm), or p (points).

The source of theses pages is the excellent Tcl/Tk Quick Reference Guide.