RE: [PHP-GTK] $list->selection

From: Date: Mon, 12 Mar 2001 17:40:58 +0000
Subject: RE: [PHP-GTK] $list->selection
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-708@lists.php.net to get a copy of this message
are you creating a clist or a list? It makes a slight bit of difference.. :) Ed -----Original Message----- From: Iuri Fiedoruk [mailto:bart@avalon.sma.zaz.com.br] Sent: Monday, March 12, 2001 11:39 AM To: Edward A. McLain; PHP-GTK (E-mail) Subject: Re: [PHP-GTK] $list->selection Em Seg 12 Mar 2001 14:17, Edward A. McLain escreveu: First thanks for the example, but I got some problems: > $list->connect('select-row', 'function name to call'); select-row dosen't work, I used: $list->connect('selection_changed', 'handle_select'); and it worked. > that's it.. it then passes the GTK Widget, row, column, and event.. so > forinstance: > > $list->connect('select-row', 'hanlde_select'); > > function handle_select($gtkwidget, $row, $column, $even) > { > $blah = $gtkwidget->get_text($row, 0, $bleh); Well, here is my new problem, php-gtk tells me that get_text is undefinied, same for get(). > if ($blah) { > print "you clicked on $bleh\n"; > } > print "value could not be retrieved.\n"; > } > } > > > Ed McLain > -- Iuri Fiedoruk Santa Maria, RS, Brazil

« previous php.gtk (#708) next »