tk_getString man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

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 Can‐
       cel 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	 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

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)
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net