getstring(3tk) A dialog which prompts for a string input getstring(3tk)__________________________________________________________________________________________________________________________________________________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(3tk)
Check Out this Related Man Page
getstring(3tk) A dialog which prompts for a string input getstring(3tk)__________________________________________________________________________________________________________________________________________________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(3tk)
I am trying to validate user input, at the moment what i have is as below :-
echo "\n\tPlease, enter package name to import: \c"
read PACKAGE
So far this works perfect , But if the user does not input any thing it stalls :(
What I need is, If the user does not enter the name of the... (9 Replies)
Hi all,
I need to parse through a text file searching for a specific string, then after I find this string read in remaining data off the line to a variable.
I've tried various things and can't seem to get any to work.
Any help would be much appreciated. (2 Replies)
Hi
I need to put the validation in batch script when user will enter the build number it should be numeric.I can put the validation for numeric values but there is .(dot) in number so it would not take it as numeric.
Is it possible we can store it in variable and remove the .(dot) from the... (1 Reply)
I am working on a semi-auto detection idea for Arduino for the Scope project.
It does require a little user intervention but minimal.
It works by just responding to two on screen prompts to unplug and plug Arduino
into a USB port.
There are two versions and both work perfectly well and give... (3 Replies)