[pygtk] gtk show the variable

xinyou yan yxy.716 at gmail.com
Wed Mar 9 18:23:40 WST 2011


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?


More information about the pygtk mailing list