Sponsored Content
Top Forums Shell Programming and Scripting Perl - start search by using search button or by pressing the enter key Post 302830779 by popeye on Tuesday 9th of July 2013 01:32:28 PM
Old 07-09-2013
No its not. I suppose I can post the rest, but Ill have to take out all the proprietary stuff ..

The snippet shows the part of the code I refer to .. and where the difficulty resides.
 

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Make the SEARCH button REALLY BIG

Neo, Maybe it would be best to make the search button/option more visible? I know when I came here the first time, I didn't really notice that option. Just an idea. It appears that some people either don't see it.. or the obvious, don't want to use it, but I'd suggest that it's more of the... (8 Replies)
Discussion started by: ober5861
8 Replies

2. UNIX for Dummies Questions & Answers

Pressing backspace key simulates enter key

Hi, Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused: Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies

3. Shell Programming and Scripting

Perl: Search for string on line then search and replace text

Hi All, I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text. An example of 4 lines in my file is: 1. MatchText_randomNumberOfText moreData ReplaceMe moreData 2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Discussion started by: Crypto
4 Replies

4. Shell Programming and Scripting

Pressing Enter (bash)

Hey, I'm writing this BASH script, I recently started learning BASH after I did Java and I'm pretty new to the syntax. Anways, what I want to do is simple, I coudn't find the right information though: Let's say I make a : read -p "Press ENTER to go back to menu" choice ..... What is... (34 Replies)
Discussion started by: Yakuzan
34 Replies

5. Shell Programming and Scripting

Pressing "Enter/Space bar" using Net::TELNET? in Perl

I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router. How is this done? (0 Replies)
Discussion started by: xmaverick
0 Replies

6. Shell Programming and Scripting

enter key or carriage return as input in perl

hi experts Question in perl i'm creating a script to take from user a different inputs one of them is the carriage return .. so that i want to make an if condition if the user hit enter key the user will go to previous step it something like that chomp ($input = <STDIN>); if ($input =~... (3 Replies)
Discussion started by: doubando
3 Replies

7. Shell Programming and Scripting

Pressing enter and script still goes on

i have a bash shell script and i press enter and the script still continues on? how do i stop this (3 Replies)
Discussion started by: gangsta
3 Replies

8. Shell Programming and Scripting

Want to write a command that keeps pressing enter key in regular interval

Hi, I m new to linux, can you pls help me to write a command/ script that keeps pressing the enter key in regular interval. Thx, Linux1 (2 Replies)
Discussion started by: mylinux1
2 Replies

9. Shell Programming and Scripting

Perl - use search keywords from array and search a file and print 3rd field when matched

Hi , I have been trying to write a perl script to do this job. But i am not able to achieve the desired result. Below is my code. my $current_value=12345; my @users=("bob","ben","tom","harry"); open DBLIST,"<","/var/tmp/DBinfo"; my @input = <DBLIST>; foreach (@users) { my... (11 Replies)
Discussion started by: chidori
11 Replies

10. Shell Programming and Scripting

Script termination without pressing Enter key[nohup]

I have a script in which we have used nohup. Once script is executed it will be terminated only when enter key is pressed. I want the script to be terminated without pressing enter key nohup imqbrokerd -name user_id port 2>1 1>$home_`date` & I am a newbie to shell, Kindly please help (3 Replies)
Discussion started by: Suganbabu
3 Replies
Gtk2::Button(3) 					User Contributed Perl Documentation					   Gtk2::Button(3)

NAME
Gtk2::Button HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Bin +----Gtk2::Button INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Glib::Object::_Unregistered::GtkActivatable MNEMONICS
Mnemonics are "memory aids"; in GTK+, a mnemonic is an underlined character which corresponds to a keyboard accelerator. For a button, that means pressing Alt and that key activates the button. For convenience, Gtk2-Perl uses mnemonics by default on widgets that support them. If characters in label string are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). If you don't want to use mnemonics at all, use the non-mnemonic version explicitly (e.g. "Gtk2::Button::new_with_label"). METHODS
widget = Gtk2::Button->new widget = Gtk2::Button->new ($mnemonic) o $mnemonic (string) used to label the widget, see "MNEMONICS" widget = Gtk2::Button->new_from_stock ($stock_id) o $stock_id (string) creates a new button using the icon and text from the specified stock item, see Gtk2::Stock widget = Gtk2::Button->new_with_label ($label) o $label (string) used to label the widget widget = Gtk2::Button->new_with_mnemonic ($mnemonic) o $mnemonic (string) used to label the widget, see "MNEMONICS" (xalign, yalign) = $button->get_alignment Since: gtk+ 2.4 $button->set_alignment ($xalign, $yalign) o $xalign (double) o $yalign (double) Since: gtk+ 2.4 $button->clicked $button->enter boolean = $button->get_focus_on_click Since: gtk+ 2.4 $button->set_focus_on_click ($focus_on_click) o $focus_on_click (boolean) Since: gtk+ 2.4 widget or undef = $button->get_image Since: gtk+ 2.6 positiontype = $button->get_image_position Since: gtk+ 2.9 $button->set_image_position ($position) o $position (Gtk2::PositionType) Since: gtk+ 2.9 $button->set_image ($image) o $image (Gtk2::Widget or undef) Since: gtk+ 2.6 string = $button->get_label $button->set_label ($label) o $label (string) $button->leave $button->pressed $button->released reliefstyle = $button->get_relief $button->set_relief ($newstyle) o $newstyle (Gtk2::ReliefStyle) boolean = $button->get_use_stock $button->set_use_stock ($use_stock) o $use_stock (boolean) boolean = $button->get_use_underline $button->set_use_underline ($use_underline) o $use_underline (boolean) PROPERTIES
'focus-on-click' (boolean : readable / writable / private) Whether the button grabs focus when it is clicked with the mouse 'image' (Gtk2::Widget : readable / writable / private) Child widget to appear next to the button text 'image-position' (Gtk2::PositionType : readable / writable / private) The position of the image relative to the text 'label' (string : readable / writable / construct / private) Text of the label widget inside the button, if the button contains a label widget 'relief' (Gtk2::ReliefStyle : readable / writable / private) The border relief style 'use-stock' (boolean : readable / writable / construct / private) If set, the label is used to pick a stock item instead of being displayed 'use-underline' (boolean : readable / writable / construct / private) If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key 'xalign' (Glib::Float : readable / writable / private) Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned 'yalign' (Glib::Float : readable / writable / private) Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned SIGNALS
activate (Gtk2::Button) pressed (Gtk2::Button) released (Gtk2::Button) clicked (Gtk2::Button) enter (Gtk2::Button) leave (Gtk2::Button) ENUMS AND FLAGS
enum Gtk2::PositionType o 'left' / 'GTK_POS_LEFT' o 'right' / 'GTK_POS_RIGHT' o 'top' / 'GTK_POS_TOP' o 'bottom' / 'GTK_POS_BOTTOM' enum Gtk2::ReliefStyle o 'normal' / 'GTK_RELIEF_NORMAL' o 'half' / 'GTK_RELIEF_HALF' o 'none' / 'GTK_RELIEF_NONE' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Button(3)
All times are GMT -4. The time now is 10:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy