Personal tools
You are here: Home development TkWidget
Views

Edit history

Edit: -1 of 1
Time: 2007-11-27 00:39:41
Note: /pd/pd/dev/TkWidget/edit "tkcanvas idea"

changed:
-
= TkWidget =

To make for better GUI building in Pd, this library is an effort to make Pd objects for all of the standard Tk widgets, and provide access to as many configuration options as possible from within Pd following the Tk messages so that the Tcl/Tk docs apply easily.

 button:: your standard button, as in ''OK'' ''Cancel''
 canvas:: a Tk canvas for drawing random stuff on
 checkbutton:: a little checkbox with text next to it
 cursor:: get data from and change the look of the mouse cursor
 entry:: a single line textfield for entering text
 image:: a widget for displaying GIF and PNM images
 label:: a place to display texts as labels
 listbox:: a scrollable box with a selectable list of things
 message:: pops up a lovely '''OK''' message box
 popupmenu:: the combination of a menubutton and a menu to make a popup menu 
 radiobutton:: a set of radio buttons (only one can be selected at a time)
 rectangle:: a blank area in the shape of a rectangle
 scale:: basically a general purpose slider
 scrollbar:: a scrollbar, like the one on the edge of this window
 spinbox:: a turnable knob-like thingy
 text:: a multi-purpose text editing widget
 tk_chooseColor:: popup a window for choosing colors
 tk_messageBox:: popup a window to ask a question


== common functions ==

 draw_nlets()/erase_nlets():: for the inlets and outlets
 draw_handle()/erase_handle():: for the resize handle when selected in edit mode
 draw_scrollbar()/erase_scrollbar():: to draw a scrollbar on widgets that need it (text, listbox, ...)
 tkwidget_option():: execute a Tk option on the current widget
 tkwidget_save():: have a `optionc`/`optionv` list of Tk option names, and this function goes thru them all and saves them

== functionality ideas ==

  * double-clicking in edit mode makes box revert to text in a box, like '''pddplink'''
  * handle to resize like '''Scope~'''
  * turn blue when selected in edit mode
  * [focus $1( message to control focus without mouse clicks
  * [bind( message to allow special behaviors from bind events
  * emoticon support in [text] via embedded images
  * Ctrl-f find support in text boxes
  * savefn uses options data straight from Tk widget (i.e. button cget height)
  * "state query" command to send all current properties' values to pd (and for one, make jmmmp/gui-edit work better)



From errordeveloper Tue Oct 30 06:10:19 +0100 2007
From: errordeveloper
Date: Tue, 30 Oct 2007 06:10:19 +0100
Subject: print selction
Message-ID: <20071030061019+0100@puredata.info>

could be good to be able to do this ..

From eni Wed Nov 14 09:51:34 +0100 2007
From: eni
Date: Wed, 14 Nov 2007 09:51:34 +0100
Subject: lovely
Message-ID: <20071114095134+0100@puredata.info>

these are awesome ideas and lets us make real applications with puredata. one thing i found not very intuitive is "double-clicking in edit mode makes box revert to text in a box".
how about just edit mode (without double clickin) makes box revert to text in a box?

Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser