Manual Pages for UNIX Darwin command on man tk_getString
MyWebUniversity

Manual Pages for UNIX Darwin command on man tk_getString

getstring(n) A dialog which prompts for a string input getstring(n)

NAME

getstring - A string dialog

SYNOPSIS

package require TTccll 88..44 package require ggeettssttrriinngg ??00..11?? ::::ggeettssttrriinngg::::ttkkggeettSSttrriinngg pathName variable text ?options?

DESCRIPTION

This package provides a dialog which consists of an Entry, OK, and Can-

cel buttons. ::::ggeettssttrriinngg::::ttkkggeettSSttrriinngg pathName variable text ?options? Creates a dialog which prompts the user with text to input a text string. The contents of the entry are put in the variable

upon closure of the dialog. The command returns a boolean indi-

cating if the user pressed OK or not. If -geometry is not speci-

fied, the dialog is centered in its parent toplevel unless its parent is . in which case the dialog is centered in the screen.

Options: -title -allowempty a boolean argument indicating if the

dialog should accept an empty entry -entryoptions simply passes

its arguments through to the entry widget. This is valuble for performing extra validation using the Entry widget validation

hooks. -geometry specifies the geometry of the window

EEXXAAMMPPLLEE package require getstring namespace import getstring::* if {[tkgetString .gs text "Feed me a string please:"]} {

puts "user entered: $text"

} KKEEYYWWOORRDDSS dialog, entry, string getstring 0.1 getstring(n)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™