osx man page for tk_getstring

Query: tk_getstring

OS: osx

Section: n

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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

__________________________________________________________________________________________________________________________________________________

NAME
getstring - A string dialog
SYNOPSIS
package require Tcl 8.4 package require getstring ?0.1? ::getstring::tk_getString pathName variable text ?options? _________________________________________________________________
DESCRIPTION
This package provides a dialog which consists of an Entry, OK, and Cancel buttons. ::getstring::tk_getString 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 indicating if the user pressed OK or not. If -geometry is not specified, 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 argu- ments through to the entry widget. This is valuble for performing extra validation using the Entry widget validation hooks. -geome- try specifies the geometry of the window
EXAMPLE
package require getstring namespace import getstring::* if {[tk_getString .gs text "Feed me a string please:"]} { puts "user entered: $text" }
KEYWORDS
dialog, entry, string getstring 0.1 getstring(n)
Related Man Pages
tk_getstring(n) - mojave
tk_dialog(n) - centos
swaplist(3tk) - debian
tk_dialog(n) - osx
tk_getstring(n) - osx
Similar Topics in the Unix Linux Community
Input validation ?
HoHow to compile Linux dialog - "curses.h" missing ?
get string out of text file after "= "
Put the numeric validation in user input when value is 5.1.2.3
Semi-Automatic Arduino Detection.