GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

translation in pyGTK ?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Orfvz



Joined: 19 Apr 2008
Posts: 1

PostPosted: Sat Apr 19, 2008 2:24 am    Post subject: translation in pyGTK ? Reply with quote

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 ?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP