Useful Items

Add colon

Adds a colon to the end of labels. Should be executed on the label itself.

A recursive version finds all labels which have a <Button> binding and adds colons to them.

You should run this tool after you use "Fixed reversed checkbutton", since that tool does not remove an inappropriate colon from the label.

Balance labels

Attempts to make all labels in a frame the correct minimum width, to decrease overall screen width. You may need to invoke Edit->"Natural Size" after using this tool.

This should be invoked on the frame containing all the labels to be balanced.

Often this tool gives inadequate results because labels in multiple frames should be aligned. In this case, you should find that width manually, then use "Apply to multiple Widgets..." with a command like %W configure -width 9.

Convert yes/no to checkbox

Converts a pair of radiobuttons reading "yes" and "no" to a single checkbox.

This should be invoked on the frame containing the label and the radiobuttons. If the radiobuttons are contained with their own frame, it must be named "radio" for this tool to work. If the outer frame contains another item then this tool will not work.

Fix buttons

Change the order, labels, and style of the buttons to match the MWUE guidelines as closely as Tk can.

This tool should be invoked on the .buttons frame. Failure to do so may cause other widgets to end up unpacked.

Fix reversed checkbutton

Fixes the nonstandard "label on left, checkbutton on right" item.

This tool should be invoked on the frame containing the label and checkbutton.

Group

Convert a frame with yellow label to a labelframe.

This tool should be invoked on a frame whose first item is a yellow group label. The recursive version may be invoked on any frame, and will attempt to find group-labeled frames anywhere inside the window.

Groups to tabset

Convert a series of yellow-bannered frames into a tabset. Move all the groups into the .w frame, then run Groups to tabset on .w.

Import TCL

Perform several tasks necessary when a .xf or .tcl screen is loaded. This tool usually doesn't produce any change in the appearance of the window.

This tool should be invoked on the root window, ".".

This tool adds BUTTON_OK, BUTTON_CANCEL, and any variable named in the -textv/-variable of a widget to the Variables menu, converts bindings of the form <Key> {entry_... to the new form <<EntryStyle>>, and converts any widgets with the text "@imagename" to show the image "imagename" instead.

Insert spacer

This tool inserts a spacer before or after the indicated widget. Use this to follow the MWUE guideline of 3DLU additional spacing between "unrelated controls".

Use this tool on the frame that is the parent of the label of the unrelated control.

Do not add spacers at the top or bottom of a group.

Makebrowse

This tool sets the label of a button to "Browse...".

This tool should be invoked on the button itself.

You should invoke "Size one button" after this tool. I should fix Makebrowse to not require this anymore.

Menu to combo

This tool converts a menubutton to a readonly combobox.

This tool should be invoked on the menubutton itself.

This requires C code changes because values are retrieved differently from a combobox, and because the -command of the menu items will be discarded in the conversion.

Pack to stack

When you insert widgets, they can sometimes end up in a different order in the tree view than they appear in the window. Run this tool if this bothers you.

Pivot group

Rearranges items in a radiobutton group to appear below their label.

This tool should be invoked on the frame containing the label for the radiobuttons.

Sentence-style caps

Changes the first character of the label to a capital letter and the rest of the letters to lowercase. Since it misbehaves on acronyms, this tool may be worse than useless.

This tool should be invoked on the label to be changed. A recursive version may be written if this tool's behavior on acronyms can be corrected, and if labels which need to be converted can be reliably detected.

Size one button

Sets the size and padding of one button to match the standard button size set by "Fix buttons".

Swapscroll

Moves a scrollbar from the left to the right of another item.

This tool should be invoked on the frame containing the scrollbar. It only works on packed scrollbars, not gridded scrollbars (the latter are common where there are both a right and a bottom scrollbar)

Two-row

Places the control (entry/combobox/radiobuttons/etc) below the label instead of on the right.

This tool should be invoked on the frame containing the label.

Esoteric items

Don't worry about these.

Move widget to parent

Cuts a widget and pastes it in the parent of its old parent

Save as composite

Saves the last cut widgets into a file which can be loaded from "Insert Composite"

Tabset properties

Informational tool by Michael

Underline Recursive

Attempt to write auto-underline tool. Works poorly.