Exemplo n.º 1
0
 def __init__(self, halcomp, widgets, paths):
     self.hal = halcomp
     self.w = widgets
     self.PATHS = paths
     self.STYLEEDITOR = SSE(widgets, paths)
     global TOOLBAR
     TOOLBAR = ToolBarActions(path=paths)
     STATUS.connect('general', self.return_value)
Exemplo n.º 2
0
 def __init__(self, halcomp, widgets, paths):
     self.hal = halcomp
     self.w = widgets
     self.PATHS = paths
     self.STYLEEDITOR = SSE(widgets, paths)
     global TOOLBAR
     TOOLBAR = ToolBarActions(path=paths)
     STATUS.connect('general', self.return_value)
     STATUS.connect('motion-mode-changed', self.motion_mode)
     STATUS.connect('user-system-changed', self._set_user_system_text)
Exemplo n.º 3
0
 def __init__(self, halcomp, widgets, paths):
     self.hal = halcomp
     self.w = widgets
     self.stat = linuxcnc.stat()
     self.cmnd = linuxcnc.command()
     self.error = linuxcnc.error_channel()
     self.PATHS = paths
     self.IMAGE_PATH = paths.IMAGEDIR
     self.STYLEEDITOR = SSE(widgets, paths)
     global TOOLBAR
     TOOLBAR = ToolBarActions(path=paths)
Exemplo n.º 4
0
# Set up logging
from qtvcp import logger
LOG = logger.getLogger(__name__)

# Set the log level for this module
#LOG.setLevel(logger.INFO) # One of DEBUG, INFO, WARNING, ERROR, CRITICAL

###########################################
# **** instantiate libraries section **** #
###########################################

KEYBIND = Keylookup()
STATUS = Status()
ACTION = Action()
INFO = Info()
TOOLBAR = ToolBarActions()
STYLEEDITOR  = SSE()
###################################
# **** HANDLER CLASS SECTION **** #
###################################

class HandlerClass:

    ########################
    # **** INITIALIZE **** #
    ########################
    # widgets allows access to  widgets from the qtvcp files
    # at this point the widgets and hal pins are not instantiated
    def __init__(self, halcomp,widgets,paths):
        self.hal = halcomp
        self.w = widgets