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.


Some usefull Tk widgets and Tcl codes


  An analog clock in Tk
 
An analog clock in Tk really pretty and thin, from Kevin Kenny

Url    Download



  A simple voltmeter
 
I`m looking more for an analog style meter. Kinda like those old volt meter. Well, if you just want to display, why not write one into a canvas? It`s pretty easy, and fun too. Try this

Url    Download



  Dial widget
 
an analog dial of $diameter pixels, background color $bg, foreground color $fg, and middleground color $mg.

Url    Download



  Paning widgets
 
A pane is understood here as a frame holding two widgets and a thin borderline with a square button. By grabbing the button, the borderline can be moved in two directions, leading to a relative resize of the two embedded widgets.

Url    Download



  A Pane vertical
 
A Pane vertical.
Thank`s to George Peter Staplin.
Download



  LCD display
 
LCD. Some code the show lcd display with a canvas. This code come from Maze Explorer.

Url    Download



  Animated steam locomotive
 
An animated steam locomotive on a canvas from "Richard.Suchenwirth"

Url    Download



  A font chooser dialog
 
A font chooser dialog from Petasis George:
Ok, the code is not perfect, but it works :-) You can use it as:
global GUI_Text
## You can use the GUI_Text array to localise all used messages.
## Sorry for not using msgcat, but I extract it directly from a complete
## app :-)
array set GUI_Text {Font: Font: FontStyle: FontStyle: Size: Size:
  Ok Ok Cancel Cancel Effects Effects Strikeout Strikeout
  Underline Underline Sample Sample TestString... {Place anything here :-)}}

1) If you want to change the font of a text widget:
    "::FontDialog::FontSelect text_widget dialog_window"
2) If you want to change a named font (one created with the font command):
    "::FontDialog::FontDialog named_font dialog_window"
Download



  A font chooser dialog
 
Creates a font dialog to select a font ( Donal K. Fellow ) the author have said : It isn`t perfect by a long shot, but.

Url    Download



  PieChart
 
This source shows how to make a piechart in a canvas with tcl/tk from Paul Welton (paul.welton_at_sympatico.ca )
Download



  An unicode editor.
 
An editor for unicode , encoding in
  • ascii
  • cp1252
  • euc-jp
  • iso2022-jp
  • iso8859-1
  • iso8859-2
  • iso8859-3
  • iso8859-4
  • iso8859-5
  • iso8859-6
  • iso8859-7
  • iso8859-8
  • jis0208
  • koi8-r
  • shiftjis
  • utf-8
  • unicode

For the language
  • \"Euro Latin 1\"
  • Arabic
  • Cyrillic
  • Greek
  • Hebrew
  • Hiragana
  • Katakana
  • Thai
Download



  A calendar widget
 
A calendar widget:
- Here`s a popup toplevel that displays a given month and allows to pick a date (or cancel):

Url    Download