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   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to