开发者

How do I output installation status using gtk in c?

开发者 https://www.devze.com 2022-12-28 17:17 出处:网络
int开发者_如何学Python main( intargc, char *argv[] ) { GtkWidget *window; gtk_init (&argc, &argv);
int开发者_如何学Python main( int   argc,
          char *argv[] )
{
    GtkWidget *window;

    gtk_init (&argc, &argv);

    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_widget_show  (window);

    gtk_main ();

    return 0;
}

The above is just a empty winform,I want to output dynamic information in it(not editable),

how should I do that?


You need a GtkTextView which you can set to be not editable. I suggest you look at this excellent GTK tutorial which explains what widgets are available in GTK and how to put them together, accompanied by lots of example code.

0

精彩评论

暂无评论...
验证码 换一张
取 消