Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk::choosecolor(3) [suse man page]

chooseColor(3)						User Contributed Perl Documentation					    chooseColor(3)

NAME
chooseColor - pops up a dialog box for the user to select a color. SYNOPSIS
$color = $widget->chooseColor?(-option=>value, ...)?; DESCRIPTION
The method chooseColor is implemented as a perl wrapper on the core tk "command" tk_chooseColor, and $widget is passed as the argument to the hidden -parent option. The implementation of internal tk_chooseColor is platform specific, on Win32 it is a native dialog, and on UNIX/X11 it is implemented in terms of Tk::ColorEditor. The chooseColor method 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=>$widget Makes $widget 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 displayed. 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, the command will return undef. EXAMPLE
$widget->configure(-fg => $parent->chooseColor(-initialcolor => 'gray', -title => "Choose color")); KEYWORDS
color selection dialog perl v5.12.1 2007-05-05 chooseColor(3)

Check Out this Related Man Page

chooseColor(3)						User Contributed Perl Documentation					    chooseColor(3)

NAME
chooseColor - pops up a dialog box for the user to select a color. SYNOPSIS
$color = $widget->chooseColor?(-option=>value, ...)?; DESCRIPTION
The method chooseColor is implemented as a perl wrapper on the core tk "command" tk_chooseColor, and $widget is passed as the argument to the hidden -parent option. The implementation of internal tk_chooseColor is platform specific, on Win32 it is a native dialog, and on UNIX/X11 it is implemented in terms of Tk::ColorEditor. The chooseColor method 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=>$widget Makes $widget 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 displayed. 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, the command will return undef. EXAMPLE
$widget->configure(-fg => $parent->chooseColor(-initialcolor => 'gray', -title => "Choose color")); KEYWORDS
color selection dialog perl v5.16.3 2014-06-10 chooseColor(3)
Man Page

10 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. UNIX for Dummies Questions & Answers

triggering utility

gang, I have a need for a utility that will 'watch' a directory and when a file pops into it, it will run a script on the file. More specifically, it will pgp decrypt the file that pops into the directory. Our Security guys aren't comfortable with the 'normal' users on our system being able... (1 Reply)
Discussion started by: hedrict
1 Replies

3. Shell Programming and Scripting

Win32::OLE open excel file as read only

I am using Win32::OLE to write a perl script which opens an excel file. That excel file is password protected and everytime i run that script dialog box pops up and I have to click on Read-Only then my script executes. Is there any way I can specify the readonly attribute in my code so i dont have... (0 Replies)
Discussion started by: dguy
0 Replies

4. Programming

XmNdialogStyle

I'm having trouble with modality on my dialogs. Even though I set XmNdialogStyle to XmPRIMARY_APPLICATION_MODAL, the dialog that pops up is not modal to its parent! Should I use XmNmwmInputMode on the top level shell instead. Any clues would be helpful. (0 Replies)
Discussion started by: g3utrb
0 Replies

5. Shell Programming and Scripting

Displaying a dialog box using terminal commands

Hello, I used the command osascript -e 'tell app "Finder" to display dialog "Hey!"' to display a dialog box..it works fine, it displays a dialog box with 'OK' and 'CANCEL' buttons..i want to get the button returned value how can i do that using terminal command? is there any command to get... (1 Reply)
Discussion started by: keshav.murthy@r
1 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. UNIX for Dummies Questions & Answers

color preferencing

I have a Linux box and a SunOS box. When I use putty to ssh to the SunOS box, everything is in black and white. When I ssh to the Linux box, it show color. I'd like to achieve the same color settings on the SunOS box. Would anyone know how to do this here (without root privilages)? Also, would... (1 Reply)
Discussion started by: mrwatkin
1 Replies

8. 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

9. 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

10. 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