Tuesday, October 18, 2016

macOS Sierra: wish (Unix shell): Label and Button

Command:

$ wish


Result:



Command:

% label .x1 -text "Hello World"


Result:

.x1


Command:

% pack .x1


Result:




Command:

% button .b1 -text "Quit" -command { exit }


Result:

.b1


Command:

% pack .b1


Result: