Version 6 of Penpad

Updated 2006-10-11 09:31:09

ABU 8-oct-2006 - Penpad Widget 1.0

ABU 11-oct-2006 - Just some small corrections (sample code).


Penpad is a small widget for free-hand drawing.

http://web.tiscali.it/irrational/tcl/penpad-1.0/doc/images/aldo.gif

Penpad provides an interactive control (widget) for simple drawing tasks.

With this control, users can draw their scribble, as well as make a signature (autograph) for document exchange.

Penpad is just a simple widget that needs to be integrated with a toolbar or other interactive controls in a complete application.

  • Start page: [L1 ]
  • Download [L2 ]

HOW TO USE IT

Included demos will show you how to add a penpad to your applications.

Basically, in order to activate a penpad you only need to add 3 lines:

  package require Penpad
  penpad .penbox
  pack .penbox

There are few other (optional) commands you can use for customizing the penpad (read below).

   # change the look
  .penbox configure -pencolor white -bg black
   # save your drawings on a file (a .gif)
  .penbox export mywork.gif
   # clean your penpad
  .penbox clean

For full details, read the "Penpad Reference" [L3 ] within the doc directory.


Wish list (need help)

  • provide a floating menu/toolbar for common/useful (?) operations.
  • add cut&paste integrated with clipboard (Desktop-clipboard, not TK-clipboard)
  • add more custom good-looking cursors.
  • "Easy way" for adding a background image.
  • Calligraphy !!!

Please add your comments below.


WJP If you are REALLY ambitious you could add to the wish list:

  • command to recognize characters and export as string.

Category Widget