Tcl-Tk Code
|
This animated-Gif was created with the 'wheeeMorph' script of the FE 'tkGooies' system. Note the nice morphing (movement and merging) of the nostrils. |
! Note !
More links to sources of Tcl-Tk code
for BIND STATEMENTS may be added
--- as more and more scripts are added
to the FE 'tkGooies' subsystem.
< Go to Table of Contents, below >
(SKIP THIS INTRO)
INTRODUCTION to BIND code snippets: As I develop more and more Tk GUI scripts in the FE 'tkGooies' subsystem --- in the group of FE (Freedom Environment) subsystems, I find it extremely helpful to copy 'snippets' of 'bind' code from an 'old' tkGooie script, for use in a new 'tkGooie' --- and then make a few changes of variable names and widget names, as needed. As I publish a script of the 'tkGooies' system on the CODE pages that are available via the 'tkGooies' Description page, I hope that that particular 'tkGooie' script may help others to learn to make Tcl-Tk scripts that are of interest to them. In the course of these activities ('tkGooie' code development and 'tkGooie' code publishing), I realized that it will be of help to me --- and to other potential 'Tclers' --- to have a web page that points to sources of various kinds of Tcl-Tk code 'snippets'. I quickly realized that, when I am looking for a Tcl-Tk code snippet, I am usually looking for a snippet that is of one of 3 general kinds:
It is the purpose of this page to provide examples of BIND STATEMENTS --- via links to web pages that present Tcl-Tk code. --- Most of the links (below) will be to the 'CODE pages' of my 'tkGooies' system --- pages of this FE (Freedom Environment) web site, www.freedomenv.com. But some links may be 'external' links --- to helpful pages at the Tcler's wiki --- wiki.tcl.tk --- or elsewhere on the web. Organization of the links below : There are such a wide variety of 'code snippets', that it is difficult to devise a single way of organizing the links. There is a standardized Tk coding structure that I use in the development of 'tkGooie' scripts. I describe that coding structure on the page A Canonical Structure for Tk Code --- and variations. In that coding structure, I basically organize the code to include 3 main sections:
In providing the links below, I provide links for EVENT-BINDINGS. A 'Table of Contents' section below can be used to take you to a section of the page below --- where each section corresponds to an event-binding --- like 'Release' or 'Press' events on a mouse button --- or 'Move' or 'Leave' events with a mouse cursor --- or 'Home' or 'End' or 'PageDown' or 'PageUp' keyboard events. Note that the event types that are most commonly used in bindings are those for user actions such as key presses (or releases) or changes in the pointer position. Examples of Tk event names:
The coder usually has a widget-type in mind --- to which an action will be 'bound', to respond to a particular user action on the widget. For example, the 'Return' event is usually bound to an 'entry' widget. So the items in the Table of Contents below will be specified by a combination of a widget-name and an event-name. Note that some of the 'canvas' bindings may be 'canvas-item-TAG' bindings. If this organization by widget-and-event name does not work for you, and it would be more helpful to seek 'bind' examples by a 'function' that you want to perform, you can look at the PROCS code-snippets page which is organized by 'function'. The Tk GUI scripts which provide that function may also have 'bind' statements that use procs to perform that function. Enough of this introduction. Below is the 'Table of Contents' --- a table of links. The table of contents below provides links to sections of THIS web page that contain links to take the reader to locally-stored (or remotely-stored) code --- code that contains snippets that may help in making more Tk GUI's. |
BIND snippets
(in alphabetical order by widget-name
and then
alphanumeric order by event-name)
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
Some Sources of snippets for
< Go to Table of Contents, above. >
|
Bottom of this page of
To return to a previously visited web page, click on the
Back button of your web browser a sufficient number of times.
OR, use the History-list option of your web browser.
< Go to Table of Contents, above. >
Page history:
Page was created 2016 Nov 04.
|