I'm trying to load gremlin into my GUI but am not having much success. Does anyone know how to integrate it directly into the Gtk via the Python?
I have so far import linuxcnc, hal, gremlin in the init of my gui class self.builder = gtk.Builder() self.plot = self.builder.get_object('hbox2') self.grem = gremlin.Gremlin(self.plot) self.plot.pack_start(self.grem) self.plot.reorder_child(self.grem, 1) ... I get this error: File "/usr/bin/gui7", line 40, in __init__ self.grem = gremlin.Gremlin(self.plot) File "/usr/lib/pymodules/python2.6/gremlin.py", line 81, in __init__ self.get_geometry() File "/usr/lib/pymodules/python2.6/gremlin.py", line 245, in get_geometry temp = self.inifile.find("DISPLAY", "GEOMETRY") AttributeError: 'gtk.HBox' object has no attribute 'find' Exception AttributeError: "'Gremlin' object has no attribute '_dlists'" in <bound method Gremlin.__del__ of <Gremlin object at 0x9e725cc (GtkDrawingArea at 0x9f10858)>> ignored I have added a label to the plot as a test so I know the self.plot.pack_start and reorder work. Thanks John ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users