Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk_choosecolor(3tk) [debian man page]

tk_chooseColor(3tk)					       Tk Built-In Commands					       tk_chooseColor(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
tk_chooseColor - pops up a dialog box for the user to select a color. SYNOPSIS
tk_chooseColor ?option value ...? _________________________________________________________________ DESCRIPTION
The procedure tk_chooseColor pops up a dialog box for the user to select a color. The following option-value pairs are possible as command line arguments: -initialcolor color Specifies the color to display in the color dialog when it pops up. color must be in a form acceptable to the Tk_GetColor function. -parent window Makes window the logical parent of the color dialog. The color dialog is displayed on top of its parent window. -title titleString Specifies a string to display as the title of the dialog box. If this option is not specified, then a default title will be dis- played. If the user selects a color, tk_chooseColor will return the name of the color in a form acceptable to Tk_GetColor. If the user cancels the operation, both commands will return the empty string. EXAMPLE
button .b -bg [tk_chooseColor -initialcolor gray -title "Choose color"] KEYWORDS
color selection dialog Tk 4.2 tk_chooseColor(3tk)

Check Out this Related Man Page

tk_chooseDirectory(3tk) 				       Tk Built-In Commands					   tk_chooseDirectory(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
tk_chooseDirectory - pops up a dialog box for the user to select a directory. SYNOPSIS
tk_chooseDirectory ?option value ...? _________________________________________________________________ DESCRIPTION
The procedure tk_chooseDirectory pops up a dialog box for the user to select a directory. The following option-value pairs are possible as command line arguments: -initialdir dirname Specifies that the directories in directory should be displayed when the dialog pops up. If this parameter is not specified, then the directories in the current working directory are displayed. If the parameter specifies a relative path, the return value will convert the relative path to an absolute path. -mustexist boolean Specifies whether the user may specify non-existent directories. If this parameter is true, then the user may only select directo- ries that already exist. The default value is false. -parent window Makes window the logical parent of the dialog. The dialog is displayed on top of its parent window. On Mac OS X, this turns the file dialog into a sheet attached to the parent window. -title titleString Specifies a string to display as the title of the dialog box. If this option is not specified, then a default title will be dis- played. EXAMPLE
set dir [tk_chooseDirectory -initialdir ~ -title "Choose a directory"] if {$dir eq ""} { label .l -text "No directory selected" } else { label .l -text "Selected $dir" } SEE ALSO
tk_getOpenFile(3tk), tk_getSaveFile(3tk) KEYWORDS
directory, selection, dialog, platform-specific Tk 8.3 tk_chooseDirectory(3tk)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

color in emacs... when ssh-ing to my FreeBSD box

I'm trying to be able to get color with my SSH sessions (I'm using PuTTY) when using Emacs... but I've been unable to. Someone told me to change the Terminal-type string to "xterm-color" and I've tried that... but I still can't get any color. Any and all help will be appreciated. (4 Replies)
Discussion started by: xyyz
4 Replies

2. AIX

ls color

Hi ppl! Do you know how to display color with ls in aix 4.3, 5.2 and in hpux and sunos as well ? thanks. (3 Replies)
Discussion started by: andryk
3 Replies

3. Solaris

Change Terminal Title

Is it possible to change the title of a Terminal window on Solaris? For example, for a MS Windows command window, one can simply type "title NameofWindow" to change the title for a command window. I was looking for similar functionality for terminal windows. Thanks. (8 Replies)
Discussion started by: here2learn
8 Replies

4. Shell Programming and Scripting

stacking case options

possible to stack case commands ? I get an error, s. comments below select choice in search delete quit do case $choice in search) select option in title director year do case $option in title) ..... break ;; ... (2 Replies)
Discussion started by: forever_49ers
2 Replies

5. UNIX for Advanced & Expert Users

Change putty title window?

Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies

6. Shell Programming and Scripting

Pop up dialog box on remote computers

I need to send out messages to over 100 clients in my sector. I want it to pop up a dialog box letting them know to save work and log out. I have the reboot script created just need the warning please. Thanks (35 Replies)
Discussion started by: deaconf19
35 Replies

7. Solaris

Update Manager Not Working

Hello I reinstalled my OS today and after going through the registration the updatemanager pops up, as expected. The problem is all i get is an error message box that's completely blank. The icon in the sytem tray is a blue question mark and when hovering over it, it says i'm not... (4 Replies)
Discussion started by: jpg.2009
4 Replies

8. Linux

how to insert a title into a window in kshell

hi all, i am using a Ubuntu work station. i have following piece of code that works ok. But i cant figure out a way to insert a string call $Name into the title of the window i am opening. As you can see, i tried two different ways without a success. Can someone please help me out here? :( ... (3 Replies)
Discussion started by: usustarr
3 Replies

9. Shell Programming and Scripting

Give user 5 chances to guess my favorite color

I wrote a script to give a user 5 guesses on what is my favorite color but I it doesn't work. I've only been scripting for a couple weeks and need some help it seems simple but how do I give the user 5 guesses? (3 Replies)
Discussion started by: noob
3 Replies

10. Shell Programming and Scripting

Script to display a dialog box every 5 seconds

I want to create a script that displays a dialog box every interval of time and exits that loop when a user presses ENTER Any idies? (4 Replies)
Discussion started by: amitlib
4 Replies

11. UNIX for Dummies Questions & Answers

Dialog box

I know, I can run dialog command in my machine. But what I want to do is I wanna show the dialog box to some other Remote host. I connected to the remote system and used dialog command its shows the box in my terminal only. How can I display to that remote machine?? Any suggestions??? (3 Replies)
Discussion started by: Adhi
3 Replies

12. Shell Programming and Scripting

Nesting backticks

I'm trying to make a dialog window that prints the output of grep that takes the output of find. Unfortunately my nested backticks don't work. Here is the dialog window: dialog --stdout --title "test" --backtitle "test" --msgbox "Test:\n `grep -l "${tablica}" `find $string``" 16 60I think I... (2 Replies)
Discussion started by: Starting_Leaf
2 Replies

13. Shell Programming and Scripting

Require input in bash dialog box

Hello. Any help would be greatly appreciated. Right now I have the following input box that works fine and well, however I would like to wrap this is a loop that requires input. Right now the script will happily continue on if the user just hits enter. I'd like to require a minimum of a 5... (5 Replies)
Discussion started by: woodson2
5 Replies