# -*- coding: utf-8 -*- """ Created on Jun 5, 2010 @author: stevenson """ from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from agileConfig import Config try: Log = Config().log.logger except Exception: from petaapan.utilities.console_logger import ConsoleLogger Log = ConsoleLogger("CMAP") # File classtools.py (new) taken from Learning Python 4th edition # Assorted class utilities and tools class Dummy(object): def view(self): pass class AttrDisplay: """ Provides an inheritable print overload method that displays instances with their class names and a name=value pair for
''' Created on Jun 5, 2010 @author: stevenson ''' from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from os import path import shelve import logging try: from agileConfig import Config Log = Config().log.logger except: Log = logging.getLogger() Log.setLevel(logging.DEBUG) from pymt.gesture import GestureDatabase class myGestures(GestureDatabase): def pull_gesture_from_shelf(self, name): try: _gdb = 'gesturesDB' Log.debug('current directory: %s' % path.abspath(path.curdir)) _file = path.join(Config().gestures, _gdb) # if not path.exists(_file): # _file = path.join(path.join(path.join(\ # path.abspath(path.curdir),'cmap'),'gestures'),_gdb) db = shelve.open(_file)