Tcl-Tk Code 'Snippets' Sources
especially for
|
This animated-GIF was created with the wheeeMorph' script of the FE 'tkGooies' system. |
! Preliminary !
This page is missing script-and-proc names in
several function categories. To be 'rounded out'
if/when I re-visit to this page.
! Note !
More links to sources of Tcl-Tk 'proc' code snippets
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 PROC code snippets: As I develop more and more Tk GUI scripts in the FE 'tkGooies' subsystem --- a subsystem in the group of FE (Freedom Environment) subsystems, I find it extremely helpful to copy 'snippets' of 'proc' code from an 'old' tkGooie script for use in a new 'tkGooie'. Then I, typically, make some changes to variable names and widget names. (OLD to NEW) Also, as I find better ways of doing things in 'new' tkGooie scripts, I find that I will someday want to go back to 'old' tkGooie scripts and implement those better-ways in the old scripts. (NEW to OLD) As I publish a script of the 'tkGooies' system in 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 Tcler's --- 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 'procs' (Tcl-Tk procedures) --- 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 : A 'Table of Contents' section below can be used to take you to a section of the page below --- where each section corresponds to a 'function category' --- and each section consists of links to code corresponding to that 'function category'. These sections are given names like '3Dtools', 'IMAGEtools', 'PLOTtools' --- similar to the toolchest categories of the 'tkGooies' system. Each link in these sections takes you to code for a Tk script. The name in the link is a set of words that indicate the function of the script. In other words, the name in the link is a 'script-identifying name'. Under each link (under each 'script-identifying name'), the names of the 'procs' used in the script are also presented. The name of each proc usually provides an indication of the function of the proc. These 'script-identifying names' and proc-names offer a way of finding a proc that may be useful to me (or you). In addition to finding a link via the 'Table of Contents' below, you can use the 'Find in Page' option of your web browser to find 'keywords' on this page, such as terms related to a procedure-function --- terms such as : 'read' or 'write' or 'file' or 'filename' or 'image' or 'img' or 'gif' or 'png' or 'jpeg' or 'jpg' or 'plot' or 'draw' or 'rotate' or 'magnify' or 'transform' or 'translate' or 'calc' or 'shade' or 'pixel' or 'px' or '3d' or '2d' or 'canvas' or 'button' or 'butt' or 'entry' or 'list' or 'sort' or 'warp' or 'color' or 'font' or ... Thus, you should be able to find procs that perform functions of interest, such as
If you locate your 'keyword' in a proc-name or in a 'script-identifying name', then you can use the associated link to take you to a web page that presents the script code that contains the proc (or procs) of interest. There is a standardized Tk coding structure that I use in the development of 'tkGooie' scripts. I describe that coding structure on a page of this site titled A Canonical Structure for Tk Code --- and variations. In that coding structure, I basically organize the code to include 3 main sections:
If you go to a page that contains code for an FE 'tkGooie' script, you can find the proc(s) of interest by scrolling down to the bottom-half of the 'tkGooie' code to find the 'PROCS' section. OR, you can use the text-search function of your web browser to find occurrences of the proc-name in the code. Enough of this introduction. Belwo 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. |
Table of Contents:(links to sections of this page, below)
(in numero-alphabetic order by
End of Table of Contents.
|
PROC examples
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< Go to Table of Contents, above. >
Some Sources of
< 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. |