Re: [pygtk] PyGTK equivalent to g_filename_from_uri()

2009-02-12 Thread Pádraig Brady
Luis Gonzalez wrote: > Hi, > > I see that glib library has g_filename_from_uri() method to get the filename > from uri : > http://library.gnome.org/devel/glib/stable/glib-Character-Set-Conversion.html#g-filename-from-uri > > I don't find it into PyGTK, where is PyGTK equivalent to > g_filename_

Re: [pygtk] Help with gtk.Menu.popup

2008-11-20 Thread Pádraig Brady
Ángel Alonso wrote: > Thanks for your help. > > My problem is this: > > self.icon = gtk.status_icon_new_from_stock(gtk.STOCK_REFRESH) > self.icon.connect('popup-menu', self.onRightClick) > self.icon.connect('activate', self.onLeftClick) > > In onRightClick function the signal 'popup-menu' has ac

Re: [pygtk] Help with gtk.Menu.popup

2008-11-20 Thread Pádraig Brady
Ángel Alonso wrote: > Hi, i need help with this function: > > http://www.pygtk.org/docs/pygtk/class-gtkmenu.html#method-gtkmenu--popup > > I need the activate_time but i need to get this param. > > Thanks and sorry about my english If you specify the activate_time as 0 then the popup menu will

Re: [pygtk] Accessing child widgets via instance variables

2008-08-29 Thread Pádraig Brady
Drew Vogel wrote: > Thanks, I have this mostly working. However it looks like instead of calling > > my_win.show() > > I now have to call > > my_win.GtkWindow.show() > > Is this correct? Yes. my_win.GtkWindow is just a shortcut I thought was useful. To access other widgets, just use my_win.id.

Re: [pygtk] Accessing child widgets via instance variables

2008-08-26 Thread Pádraig Brady
Drew Vogel wrote: > I have a glade file with a gtk.Window named my_win. It has a gtk.Button > on it named my_btn. When I call: > > my_win = wtree.get_widget("my_win") > > I want to be able to access my_btn as: > > my_win.my_btn > > Is there a way to make PyGTK enable this access pattern

Re: [pygtk] Asynchronous access at output of os.popen() call

2008-08-20 Thread Pádraig Brady
A.T.Hofkamp wrote: > Pádraig Brady wrote: >> togix wrote: >>> Hi, >>> I'm working on a GUI in PyGTK that allows to insert some parameters and >>> then to call a program (written in C) using the os.popen() function. >>> >>> The thing that

Re: [pygtk] Asynchronous access at output of os.popen() call

2008-08-20 Thread Pádraig Brady
togix wrote: > Hi, > I'm working on a GUI in PyGTK that allows to insert some parameters and then > to call a program (written in C) using the os.popen() function. > > The thing that I want to do is redirect the standard output of the called > program into a gtk.TextView() box [b]in runtime[/b],

Re: [pygtk] TextView and the mouse

2007-10-12 Thread Pádraig Brady
Hans-Joachim Widmaier wrote: > Hello again. > > I had to implement a slightly unusual terminal. The bulk of it is > a TextBuffer/TextView combo. I'd like to match the behaviour of > a xterm, particularly the scrolling to the end on input - whether > the input comes from the "other end" or the user

Re: [pygtk] Need help to find origin of a mem leakage

2007-09-27 Thread Pádraig Brady
David Tremouilles wrote: > Sorry forgot the attachments > > Hello, > > I'm struggling with a memory leakage of my pygtk app for quite some > time. Could somebody help me? > > Seems this is not a cycle reference (checked with gc.garbage) but I'm > definitely not an expert... What version of pyt

Re: [pygtk] PyGTK FAQ moved

2007-06-07 Thread Pádraig Brady
Johan Dahlin wrote: > Hi there > > My employer (Async Open Source) recently invested in server for faster > hosting. I just moved over the PyGTK FAQ to the new server, it should be a > lot more responsive now. > The DNS records has not been updated yet so it is temporary redirected to > pygtk-faq.

Re: [pygtk] setting busy interactive pointer (left_ptr_watch)

2007-05-11 Thread Pádraig Brady
Pádraig Brady wrote: > Hi, > > I'm trying to add the "Busy-Interactive" pointer to my pygtk app as described > in the HIG: > http://developer.gnome.org/projects/gup/hig/2.0/feedback-types.html > > Now mozilla at least has a nice themed animated version of t

[pygtk] setting busy interactive pointer (left_ptr_watch)

2007-05-11 Thread Pádraig Brady
Hi, I'm trying to add the "Busy-Interactive" pointer to my pygtk app as described in the HIG: http://developer.gnome.org/projects/gup/hig/2.0/feedback-types.html Now mozilla at least has a nice themed animated version of this pointer, which I understand, X/GDK do not support directly according t