Course Catalog

Building Applications With Tcl/Tk

This course will give the student a general overview on building applications using the Tcl language syntax.

Topics

  • Tcl/Tk Basics
  • Using wish
  • "Hello World" GUI example
  • Anatomy of a Tk widget
  • Configuration options
  • Making Widgets Work Together
  • Variables
  • Checkbuttons/radiobuttons/listboxes and scrollbars
  • Understanding the event loop
  • Using images
  • Quoting rules
  • Procedures
  • Local versus global scope
  • Understanding the pack Facility
  • Filling the cavity
  • Pack options
  • Handling resizable windows
  • Make your packing job simple
  • Widget hierarchy
  • Understanding the grid Facility
  • Putting widgets in rows and columns
  • Making grids resizable
  • A Closer Look at Tcl
  • Building and manipulating lists
  • Defining and using arrays
  • Conditionals and looping
  • Coding style
  • Simple Applications
  • Manipulating images
  • Procedures with optional arguments
  • Procedures with variable argument lists
  • Tracing down errors
  • Tapping into Events
  • How events work
  • Using the bind command
  • Overview of the canvas widget
  • Simple sketch pad program
  • Rubberbanding on the canvas
  • Menu Bars
  • Creating menu bars
  • Cascade menus
  • Menu accelerators
  • Dialogs
  • Dialog boxes
  • Using grab to implement modal dialogs
  • Centering dialogs on the screen
  • Building Text Displays
  • Overview of the text widget
  • Setting tab stops
  • Using tags to apply text styles
  • Managing Files and Processes
  • Overview of file-related commands
  • Opening and closing files
  • Reading and writing files
  • Using scan and regexp for parsing input
  • Using catch to handle errors
  • Using exec to execute other Unix processes
  • Using open to open pipes
  • Adding Extensions in C
  • Software architecture
  • Popular extensions: [incr Tcl], BLT, TclX
  • Writing a command-handling procedure
  • Creating a customized wish
  • Mix and match with other extensions
  • Trade-offs

Audience

This course provides a hands-on introduction to Tcl/Tk. Our approach teaches the Tcl language syntax while building GUI applications, an approach that is both exciting and practical. Students learn fundamental GUI concepts like how to create widgets, how

Course Length

Three Days

For More Information

Contact sales@intech.com if you have questions regarding this or any other course.

Earlier versions of courses may be available upon request.
Print this page

Other Tcl/Tk Courses:

Building Applications With Tcl...