GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Aug 01, 2014 9:50 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: translation in pyGTK ?
PostPosted: Sat Apr 19, 2008 2:24 am 
Offline

Joined: Sat Apr 19, 2008 2:11 am
Posts: 1
Hi,

I found that code :
Quote:
int main(int argc, char **argv)
{
GtkWidget * MainWindow;

gtk_init(&argc, &argv);

MainWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(G_OBJECT(MainWindow), "delete-event", G_CALLBACK(gtk_main_quit), NULL);

gtk_signal_connect (GTK_OBJECT (MainWindow), "motion_notify_event",
(GtkSignalFunc) position_souris, NULL);

gtk_widget_set_events (MainWindow, GDK_POINTER_MOTION_MASK);

gtk_widget_show(MainWindow);
gtk_main();

gtk_exit(EXIT_SUCCESS);
return EXIT_SUCCESS;
}


Could someone translate me that in PyGTK ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group