Re: $list->selection

From: Date: Mon, 12 Mar 2001 17:39:19 +0000
Subject: Re: $list->selection
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-707@lists.php.net to get a copy of this message
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 (#707) next »