How do i connect C callbacks to Python scripts ?

2004-09-25 Thread saurabh wagh
Hey there... I m a newbie in linux... and am designing an interface for my project ... I ve used Glade for the same and the code generated is in C... I ve got some python scripts which i have to use as callbacks...The callback functions are all in the C code... and I gotta link those to my

Re: How do i connect C callbacks to Python scripts ?

2004-09-25 Thread John Gill
I'd be inclined to use pygtk for your gui -- this will allow you to have all your code in python (if i understand correctly the only C code you have is the stuff from glade). There is an excellent pygtk faq here: http://www.async.com.br/faq/pygtk/index.py?req=index There is an excellent

Re: learning gtk - callbacks

2004-09-25 Thread Irv Mullins
greg wolski [EMAIL PROTECTED] wrote: Subject: learning gtk - callbacks Hi there, I am trying to learn gtk and I have a hard time to understand signals. This comes from helloworld in tutorial g_signal_connect (G_OBJECT (window), delete_event,                   G_CALLBACK (delete_event),

Re: gtk_widget_queue_resize() forgetting allocation

2004-09-25 Thread Stephen Bach
For posterity: I isolated the issue to the GtkViewport widget. I found that if I packed the label/vbox into a GtkLayout and packed that into the GtkScrolledWindow, the size negotiations worked the way they should. I don't know if the problem is caused by some function of the viewport that I

GtkLayout and {h,v}adjustment-step_increment

2004-09-25 Thread Stephen Bach
Just a quick question. The gtk_layout_size_allocate() function seems to set the page_increment fields of its layout's GtkAdjustments, but not the step_increment fields. So in, say, gtk_set_hadjustment_values() and gtk_set_vadjustment_values() (called in gtk_viewport_size_allocate()) of

Re: learning gtk - callbacks

2004-09-25 Thread Keith Sharp
On Fri, 2004-09-24 at 16:30 -0700, greg wolski wrote: Hi there, I am trying to learn gtk and I have a hard time to understand signals. This comes from helloworld in tutorial g_signal_connect (G_OBJECT (window), delete_event, G_CALLBACK (delete_event), NULL);

How can I load a jpg or png from file to pixmap?

2004-09-25 Thread jf duan
Hello How can I load a jpg or png graphics from file to pixmap in gtk+1.2 duanjf _ Do You Yahoo!? 150MP3 http://music.yisou.com/ http://image.yisou.com 1G1000