Esempio n. 1
0
from constants import EventConstants, DeviceConstants
from constants import KeyboardConstants, MouseConstants, EyeTrackerConstants

from util import print2err, printExceptionDetailsToStdErr, ioHubError
from util import fix_encoding, OrderedDict, module_directory, updateDict
from util import isIterable, getCurrentDateTimeString, convertCamelToSnake
from util import ProgressBarDialog, MessageDialog, FileDialog, ioHubDialog
from util import win32MessagePump

fix_encoding.fix_encoding()

def _localFunc():
    return None

global IO_HUB_DIRECTORY
IO_HUB_DIRECTORY=module_directory(_localFunc)

import devices
from devices import Computer, import_device, DeviceEvent, Device

_DATA_STORE_AVAILABLE=False
try:
    import datastore
    _DATA_STORE_AVAILABLE=True
except Exception, e:
    print2err("WARNING: ioHub DataStore could not be loaded. DataStore functionality will be disabled. Error: ")
    printExceptionDetailsToStdErr()

import client
from client import ioHubConnection, launchHubServer, ioHubExperimentRuntime
Esempio n. 2
0
from util import getCurrentDateTimeString
from util import ExperimentVariableProvider
from util import FullScreenWindow, SinusoidalMotion
from util import TimeTrigger, DeviceEventTrigger
from util import ScreenState, ClearScreen, InstructionScreen, ImageScreen
from util import ProgressBarDialog, MessageDialog, FileDialog, ioHubDialog

fix_encoding.fix_encoding()


def _localFunc():
    return None


global IO_HUB_DIRECTORY
IO_HUB_DIRECTORY = module_directory(_localFunc)

#version info for ioHub
__version__ = '0.8.0'
__license__ = 'GNU GPLv3 (or more recent equivalent)'
__author__ = 'iSolver Software Solutions'
__author_email__ = '*****@*****.**'
__maintainer_email__ = '*****@*****.**'
__users_email__ = '*****@*****.**'
__url__ = 'https://www.github.com/isolver/ioHub/'

# check module is being loaded on a supported platform
SUPPORTED_SYS_NAMES = ['linux2', 'win32', 'cygwin', 'darwin']
if sys.platform not in SUPPORTED_SYS_NAMES:
    print ''
    print "ERROR: ioHub is not supported on the current OS platform. Supported options are: ", SUPPORTED_SYS_NAMES