PHP-GTK: Criando Aplicações Gráficas com PHP Adianti Framework para PHP PHP Programando com Orientação a Objetos Criando Relatórios com PHP

[PHP-GTK] Re: Como pegar valor de um GtkEntry() e colocar no GTKTextView?

Josy R. L. josy.rl em gmail.com
Terça Dezembro 11 12:36:25 BRST 2007


Resolvido:

$caixa = $this->caixa = new GTKTextView;
$textbuffer = $this->textbuffer = new GtkTextBuffer;
$this->caixa->set_buffer($this->textbuffer);

 function pesquisa()
   {
      $nome = $this->input_nome->get_text();
      $this->textbuffer->insert_at_cursor("$nome");
   }
-- 
___________________________________

                     Josy R.L.
    EJ Target - Systems & Support
       http://www.ejtarget.com.br
___________________________________


Em 11/12/07, Josy R. L. <josy.rl em gmail.com> escreveu:
>
>
> Como pego o valor de algo digitado no GtkEntry() e coloco dentro de um
> GTKTextView??
>
> $input_nome = $this->input_nome = new GtkEntry();
> $buttom = $this->buttom = new GtkToggleButton('Pesquisar');
> $buttom->connect("clicked",array($this, "pesquisa"));
> $caixa = $this->caixa = new GTKTextView;
> $caixa ->set_editable(false);
> $result = $this->result = new GtkLabel();
> //$caixa->pack_start($this->result);  tentei assim mas deu erro..
>
> function pesquisa()
>    {
>       $nome = $this->input_nome->get_buffer();
>       $this->caixa->set_text("$nome");
>    }
> --
> ___________________________________
>
>                      Josy R.L.
>     EJ Target - Systems & Support
>        http://www.ejtarget.com.br
> ___________________________________
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://lists.php-gtk.com.br/pipermail/lista/attachments/20071211/f3777f54/attachment.html


More information about the Lista mailing list