Hi Dave, Chris uses the GladeVCP wrapped gremlin. I've used that as well but get errors when I start my app so I'm trying to use gremlin.py directly into my gui.
Starting LinuxCNC... (gui7:18334): GtkGLExt-CRITICAL **: gtk_widget_get_gl_context: assertion `GTK_WIDGET_REALIZED (widget)' failed (gui7:18334): GtkGLExt-CRITICAL **: gtk_widget_get_gl_window: assertion `GTK_WIDGET_REALIZED (widget)' failed (gui7:18334): GtkGLExt-CRITICAL **: gtk_widget_get_gl_window: assertion `GTK_WIDGET_REALIZED (widget)' failed Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/gladevcp/hal_gremlin.py", line 66, in <lambda> self.gstat.connect('file-loaded', lambda w, f: self._load(f)) File "/usr/lib/pymodules/python2.6/rs274/glcanon.py", line 268, in inner self.deactivate() File "/usr/lib/pymodules/python2.6/gremlin.py", line 153, in deactivate gldrawable.gl_end() AttributeError: 'NoneType' object has no attribute 'gl_end' On 12/17/2012 7:27 AM, Dave wrote: > Hi John, > > Chris uses the Gremlin widget in Gscreen. > > I'd grab a copy of his latest Gscreen program and take a look at that. > > Dave > > > On 12/17/2012 8:00 AM, John Thornton wrote: >> I trying to load gremlin into my python gtk GUI and can't seem to guess >> the right way to load it. I'd really like to understand how gremlin >> works so I can document it. >> >> Do I need to use gremlin-run? >> >> I've tried every way that I can think of to create an instance of gremlin... >> >> self.grem = gremlin.Gremlin.__init__(self.gremlin, inifile) >> and >> self.grem = gremlin.Gremlin(self.ini_file) >> both throw errors. >> >> Am I even close to guessing the right way to load it? >> >> self.plot = self.builder.get_object('hbox2') >> self.plot.pack_start(self.grem) >> self.plot.reorder_child(self.grem, 1) >> >> Is this anything close to how I need to put it into a hbox? The above >> works with a label so I know the pack and reorder works. >> >> Can anyone give me a hint? >> >> 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-developers mailing list >> Emc-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/emc-developers >> >> > > ------------------------------------------------------------------------------ > 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-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ 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-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers