User input/Graphical: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: nl ww) |
m (→{{header|C}}: no need to pass the win too) |
||
Line 61: | Line 61: | ||
GtkHBox *hbox[2]; |
GtkHBox *hbox[2]; |
||
GtkVBox *vbox; |
GtkVBox *vbox; |
||
GtkWidget *widgs[ |
GtkWidget *widgs[2]; |
||
gtk_init(&argc, &argv); |
gtk_init(&argc, &argv); |
||
Line 76: | Line 76: | ||
widgs[0] = GTK_WIDGET(entry); |
widgs[0] = GTK_WIDGET(entry); |
||
widgs[1] = GTK_WIDGET(spin); |
widgs[1] = GTK_WIDGET(spin); |
||
widgs[2] = GTK_WIDGET(win); |
|||
okbutton = (GtkButton *)gtk_button_new_with_label("Ok"); |
okbutton = (GtkButton *)gtk_button_new_with_label("Ok"); |