Skip to content

typerig.proxy.gs3.gui.entry · declarations 001

Back to typerig.proxy.gs3.gui.entry

BTN module-attribute

BTN

CLEAR module-attribute

CLEAR

PAD module-attribute

PAD

add_entry

add_entry(parent, attr, x, y, preset, factory, w=None, lead=None, tooltip=None)

Create, size and place one entry; store it as parent..

factory : callable(posSize, sizeStyle) -> vanilla control Other arguments as entry_frame. Returns (control, x_next).

entry_frame

entry_frame(x, y, preset, h, w=None, lead=None)

posSize of an entry on the button row at y, and the x after it.

x : cursor — right edge of the widget to the left, or the row start h : control height (preset.H or natural_height) w : width override, a UI value; negative = anchored to the right edge (vanilla). None = preset.W; preset.W None = to the right edge (-PAD) lead : space before the control; None = CLEAR (a button on the left) Returns (posSize, x_next); x_next = field end + CLEAR, None when the field is anchored to the right edge.

natural_height

natural_height(ctrl)

Natural height of a vanilla control for its sizeStyle (intrinsicContentSize).