[pygtk] gtk show the variable

馬吉軍 jjmmma at gmail.com
Wed Mar 9 21:05:26 WST 2011


Hi,

Maybe you can try with gtk.gdk.PixbufAnimation class. I'm not sure is this
what you want. Good luck.

BRs,
Kimi
顺颂时祺
 <http://www.chachafille.com>


On Wed, Mar 9, 2011 at 6:23 PM, xinyou yan <yxy.716 at gmail.com> wrote:

> If the variable is different in a program ,
>
> How can gtk program capture the value  and show it in the windows?
>
>       {
>          char buf[20]={'h' ,'e' ,'l','l','o'},temp[10];
>           sprintf(temp,"%d",i);
>           strcat(buf , temp);
>           strcat(buf ,"\n");
>           gtk_text_insert(GTK_TEXT(text),NULL,NULL,NULL,buf,-1);
>           gtk_widget_show(text);
>           sleep(0.1);
>
>       }
>
>
>       gtk_main ();
>
>
> It just show the buf one time
>
> However , I want to see one by one?
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110309/e9c6f8f7/attachment.html>


More information about the pygtk mailing list