question gladevcp cursor, name program load.
18 Apr 2013 05:05 #32852
by jlviloria
question gladevcp cursor, name program load. was created by jlviloria
greetings,
I wanted to add a gladevcp, where the operator edit, save and reload cnc programs, without having to use GEDIT.
works well for me, although I am aware that you can improve a lot yet.
I have the following problem.
1) the cursor does not appear in the gcode_view me. active in spite of having the widget.
2) i want to display the file name instead of G CODE,
Now everyone will know I'm not the most expert and the English ran me over.
any help is valuable.
edit.py
import hal_glib
import gladevcp
import os
import sys
import pygtk
pygtk.require("2.0")
import gtk.gladevcp
import gtk
import gladevcp.makepins
from gladevcp.gladebuilder import GladeBuilder
import hal_widgets
import gobject
class HandlerClass:
def on_hal_status_file_loaded(self,widget,filename):
self.widgets.gcode_tab.set_text(name)
self.builder.get.object('gcode_tab').set_tex(_("Program loaded: %s"%filename))
def __init__(self, halcomp,builder,useropts):
self.halcomp = halcomp
self.builder = builder
self.nhits = 0
def get_handlers(halcomp,builder,useropts):
return [HandlerClass(halcomp,builder,useropts)]
thanks
Jorge Viloria
I wanted to add a gladevcp, where the operator edit, save and reload cnc programs, without having to use GEDIT.
works well for me, although I am aware that you can improve a lot yet.
I have the following problem.
1) the cursor does not appear in the gcode_view me. active in spite of having the widget.
2) i want to display the file name instead of G CODE,
Now everyone will know I'm not the most expert and the English ran me over.
any help is valuable.
edit.py
import hal_glib
import gladevcp
import os
import sys
import pygtk
pygtk.require("2.0")
import gtk.gladevcp
import gtk
import gladevcp.makepins
from gladevcp.gladebuilder import GladeBuilder
import hal_widgets
import gobject
class HandlerClass:
def on_hal_status_file_loaded(self,widget,filename):
self.widgets.gcode_tab.set_text(name)
self.builder.get.object('gcode_tab').set_tex(_("Program loaded: %s"%filename))
def __init__(self, halcomp,builder,useropts):
self.halcomp = halcomp
self.builder = builder
self.nhits = 0
def get_handlers(halcomp,builder,useropts):
return [HandlerClass(halcomp,builder,useropts)]
thanks
Jorge Viloria
Please Log in or Create an account to join the conversation.
19 Apr 2013 12:32 #32899
by cmorley
Replied by cmorley on topic question gladevcp cursor, name program load.
What are you using this with? AXIS or Gscreen?
Chris M
Chris M
Please Log in or Create an account to join the conversation.
19 Apr 2013 12:41 #32900
by jlviloria
Replied by jlviloria on topic question gladevcp cursor, name program load.
Chris
Axis
I want to display the cursor in the gcode_view and the program name loaded.
I appreciate your attention to me.
Axis
I want to display the cursor in the gcode_view and the program name loaded.
I appreciate your attention to me.
Please Log in or Create an account to join the conversation.
22 Apr 2013 11:06 #32977
by cmorley
Replied by cmorley on topic question gladevcp cursor, name program load.
This seems to be a problem of AXIS giving not giving focus to the embedded gladeVCP panel.
I'm not sure how to fix it. Sorry
I'm not sure how to fix it. Sorry
The following user(s) said Thank You: jlviloria
Please Log in or Create an account to join the conversation.
22 Apr 2013 11:26 #32978
by jlviloria
Replied by jlviloria on topic question gladevcp cursor, name program load.
if it is very strange. I'm learning a lot from glade and python in order to implement your GScreen, and I must add special buttons for my machine but still do not know how to do it in GScreen, besides the problem of the resolution of the screen.
thank you very much Chris, you've been very helpful in my process.
thanks,
jorge
thank you very much Chris, you've been very helpful in my process.
thanks,
jorge
Please Log in or Create an account to join the conversation.
22 Apr 2013 20:31 #32997
by mhaberler
Replied by mhaberler on topic question gladevcp cursor, name program load.
If you want to do substantial extensions on your own GUI, you are better off by using Gscreen
the combination of Axis and Gtk is a bit touchy in terms of event handling, and unfortunately there is not much which can be done about it
see here - section 11: www.linuxcnc.org/docs/devel/html/gui/gla...key_handling_in_axis
- Michael
the combination of Axis and Gtk is a bit touchy in terms of event handling, and unfortunately there is not much which can be done about it
see here - section 11: www.linuxcnc.org/docs/devel/html/gui/gla...key_handling_in_axis
- Michael
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.088 seconds