Re: [pygtk] problems porting pygtk app to pygobject on Fed. 14

2011-03-15 Thread John Lumby
John Lumby wrote: > > Thanks again John - yes, it is certainly related to the typelibs. > On this custom system, the girepository-1.0 directory does not have a typelib > for gtk. > It has just these typelibs: > > Atk-1.0 > xrandr-1.3 > xlib-2.0 > xft-2.0 > xfixes-4.0 > libxml2-2.0 > fr

Re: [pygtk] problems porting pygtk app to pygobject on Fed. 14

2011-03-15 Thread John Lumby
j stowers wrote: > > What idiom is this? Why are you constructing self.myobject that way? Why > are you not just super() or chaining up in __init__(self)? > It is known as "idiot idiom" aka trial and error. If I omit that line,  it fails later on at a line reading self.vbox = Gtk.VBox() wit

Re: [pygtk] problems porting pygtk app to pygobject on Fed. 14

2011-03-14 Thread John Stowers
> from gi.repository import Gdk, Gtk, GObject > ... > class ToggleBut(Gtk.Window): > def __init__(self, parent=None): > self.mywindow = Gtk.Window.__init__(self) > self.myobject = GObject.__init__() What idiom is this? Why are you constructing self.myobject that way? Why are

Re: [pygtk] problems porting pygtk app to pygobject on Fed. 14

2011-03-14 Thread John Lumby
J Stowers wrote: > > Firstly, F-14 is probably too old. This pygobject+g-i has moved a lot in the > last few months. > Thanks John.    Eventually I got it working on that F-14 system (without upgrading any packages). > > * use glib (i.e. static bindings) and GObject (from gi.repository import

Re: [pygtk] problems porting pygtk app to pygobject on Fed. 14

2011-03-13 Thread John Stowers
On Sun, 2011-03-13 at 18:34 -0400, John Lumby wrote: > I am having trouble trying to port a pygtk/python2.6/linux-fedora-14 > application to use pygobject. > > My first try was to convert using pygi-convert.sh, and when I ran that > converted .py, I got Firstly, F-14 is probably too old. This py

[pygtk] problems porting pygtk app to pygobject on Fed. 14

2011-03-13 Thread John Lumby
I am having trouble trying to port a pygtk/python2.6/linux-fedora-14 application to use pygobject. My first try was to convert using pygi-convert.sh, and when I ran that converted .py, I got File "/home/lumby/pythonapps/togglegobj_from_convert.py", line 17, in pyGtk.requir