登录 | 注册 | FAQ
Anonymous

Help help

+ 发表回复

8 篇帖子 分页: 1 / 1


Help help

Nilutpal Boruah » 周日 3月 02, 2014 1:22 am

What is Gtk or Gtk+ ? How to learn it.
头像

Nilutpal Boruah

  • 帖子: 63
  • 注册: 周二 5月 14, 2013 2:02 pm

Re: Help help

Chikwado » 周一 3月 03, 2014 5:49 am

Tell me exertly where you read that word "gtk".
头像

Chikwado

  • 帖子: 87
  • 注册: 周一 7月 29, 2013 11:36 pm
  • 地址: Nigeria

Re: Help help

Chikwado » 周一 3月 03, 2014 5:50 am

Tell me exertly where you read that word "gtk".
头像

Chikwado

  • 帖子: 87
  • 注册: 周一 7月 29, 2013 11:36 pm
  • 地址: Nigeria

Re: Help help

XainPro » 周一 3月 03, 2014 7:23 am

GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites.

http://www.gtk.org/
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: Help help

Nilutpal Boruah » 周二 3月 04, 2014 9:04 am

Does it look like coding or else?
头像

Nilutpal Boruah

  • 帖子: 63
  • 注册: 周二 5月 14, 2013 2:02 pm

Re: Help help

XainPro » 周四 3月 06, 2014 11:51 am

Yes it's like coding ;)
It's a library type thing here is it's example

代码: 全选
#include <gtk/gtk.h>

int main (int argc, char *argv[])
{
    GtkWidget *window;
    GtkWidget *label;

    gtk_init(&argc, &argv);

    /* Create the main, top level window */
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

    /* Give it the title */
    gtk_window_set_title(GTK_WINDOW(window), "Hello, world!");

    /*
    ** Map the destroy signal of the window to gtk_main_quit;
    ** When the window is about to be destroyed, we get a notification and
    ** stop the main GTK+ loop by returning 0
    */
    g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);

    /*
    ** Assign the variable "label" to a new GTK label,
    ** with the text "Hello, world!"
    */
    label = gtk_label_new("Hello, world!");

    /* Plot the label onto the main window */
    gtk_container_add(GTK_CONTAINER(window), label);

    /* Make sure that everything, window and label, are visible */
    gtk_widget_show_all(window);

    /*
    ** Start the main loop, and do nothing (block) until
    ** the application is closed
    */
    gtk_main();

    return 0;
}
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm

Re: Help help

Nilutpal Boruah » 周四 3月 06, 2014 1:32 pm

Owh.. That means we need that tool and write these codes there! Where shall I learn these codes, these are different
头像

Nilutpal Boruah

  • 帖子: 63
  • 注册: 周二 5月 14, 2013 2:02 pm

Re: Help help

XainPro » 周一 3月 10, 2014 12:21 pm

From books online videos and online tutrials

http://zetcode.com/tutorials/gtktutorial/

https://developer.gnome.org/gtk-tutoria ... book1.html
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1