::tycho::TWidget
-
Source File -
Contents:
itk_options
- public methods
- protected variables
- protected common
Note that this widget is fairly simple, and that the following options should not be changed once any buttons have been created: -statusbar, -columns.
The buttons are not necessarily evenly spaced. I thought the grid geometry manager would do this but apparently it doesn't. It would be nice if there were an automatic way of getting all buttons the right width, but right now there just isn't...
FIXME: Figure out if it's possible to bind to a window mapping event and adjust the column -minsize option based on the measured button widths.
-columns
0
-padx
11
-pady
4
-spacingx
0
-spacingy
0
-font
[::tycho::font
-ringwidth
4
-statusbar
-buttonwidth
8
add
tag args
-row
: Specify the row into which the button is placed.
-column
: Specify the column into which the button is placed.
-description
: If specified, this string is printed to the
status bar widget when the mouse moves over the button.
If either is given, then both of the row and column buttonopts must be given. If neither is given (what you would usually do), then the grid fills up from left to right and top to bottom.
buttoncget
tag option
buttonconfigure
tag {option {}} args
Note: if you want to change the position of a button, you can do so by using these methods. However, you still have to ensure that the button is moved to a position notr already occupied.
default
args
With no arguments, this method returns the current default button. If the argument is the null string, then the default ring is removed.
delete
tag
invoke
tag
location
tag
currentColumn
0
currentRow
0
defaultButton
_row
_column
_description
localoptions
-row -column -description