[pygtk] widget_push_composite_child

2007-03-12 Thread Jeffrey Barish
I understand that I can add composite children to a widget by creating them between widget_push_composite_child and widget_pop_composite_child calls. gtk.widget_push_composite_child() widget1 = gtk.Widget1() widget2 = gtk.Widget2() gtk.widget_pop_composite_child() widget1.set_parent(main_widget) w

Re: [pygtk] running pygtk application with root privileges

2007-03-12 Thread Greg Ewing
Miki wrote: Hi again, I wrote a simple C program: #define PYTHON "/home/mikib/t.py" main(argc, argv) char **argv; { setreuid(0,0); setregid(0,0); execvp(PYTHON, argv); } But after I compiled the C program and run it the Pyton program did not run as 'root' user, Of course it won't -- i

Re: [pygtk] Re: Re: Cannot subclass gtk.Widget

2007-03-12 Thread Gustavo J. A. M. Carneiro
On Sex, 2007-03-09 at 11:05 -0500, John Dennis wrote: > On Fri, 2007-03-09 at 10:38 -0500, John Dennis wrote: > > On Fri, 2007-03-09 at 08:10 -0700, Jeffrey Barish wrote: > > > Gustavo J. A. M. Carneiro wrote: > > > > > > > Another, more complex, example can be found here: > > > > http://telecom.i

Re: [pygtk] running pygtk application with root privileges

2007-03-12 Thread Gian Mario Tagliaretti
2007/3/11, Miki <[EMAIL PROTECTED]>: How can I run pygtk application in root (setuid) mode or how can I ask the user to enter the root password (in the pygtk env.) and then run the application? In gnome-python-extras you have the module gksu. I'm currently making bindings for a more recent ve

Re: [pygtk] running pygtk application with root privileges

2007-03-12 Thread Miki
Hi again, I wrote a simple C program: #define PYTHON "/home/mikib/t.py" main(argc, argv) char **argv; { setreuid(0,0); setregid(0,0); execvp(PYTHON, argv); } But after I compiled the C program and run it the Pyton program did not run as 'root' user, and I'm getting this error: Traceback (mo

Re: [pygtk] Text Tag "direction" property not respected?

2007-03-12 Thread Fredrik Corneliusson
Hi Helm, Well that is how it works by default, and setting the direction for a text span explicitly using gtk.TextTag direction property does not change this behaviour, so I wonder what this property is supposed to do. Regards, Fredrik On 3/9/07, Volker Helm <[EMAIL PROTECTED]> wrote: I would g