Zaloguj | Zarejestruj | FAQ
Anonymous

Help help

+ Odpowiedz

Posty: 8 Strona 1 z 1


Help help

przez Nilutpal Boruah » N mar 02, 2014 1:22 am

What is Gtk or Gtk+ ? How to learn it.
Avatar użytkownika

Nilutpal Boruah

  • Posty: 63
  • Dołączył(a): Wt maja 14, 2013 2:02 pm

Re: Help help

przez Chikwado » Pn mar 03, 2014 5:49 am

Tell me exertly where you read that word "gtk".
Avatar użytkownika

Chikwado

  • Posty: 87
  • Dołączył(a): Pn lip 29, 2013 11:36 pm
  • Lokalizacja: Nigeria
--
Focus On Advance Science And Programming.

Re: Help help

przez Chikwado » Pn mar 03, 2014 5:50 am

Tell me exertly where you read that word "gtk".
Avatar użytkownika

Chikwado

  • Posty: 87
  • Dołączył(a): Pn lip 29, 2013 11:36 pm
  • Lokalizacja: Nigeria
--
Focus On Advance Science And Programming.

Re: Help help

przez XainPro » Pn mar 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/
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: Help help

przez Nilutpal Boruah » Wt mar 04, 2014 9:04 am

Does it look like coding or else?
Avatar użytkownika

Nilutpal Boruah

  • Posty: 63
  • Dołączył(a): Wt maja 14, 2013 2:02 pm

Re: Help help

przez XainPro » Cz mar 06, 2014 11:51 am

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

Kod: Zaznacz cały
#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;
}
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm

Re: Help help

przez Nilutpal Boruah » Cz mar 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
Avatar użytkownika

Nilutpal Boruah

  • Posty: 63
  • Dołączył(a): Wt maja 14, 2013 2:02 pm

Re: Help help

przez XainPro » Pn mar 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
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm


+ Odpowiedz

Strona 1 z 1