Did I find the right examples for you? yes no

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

src/i/o/ioHub-HEAD/iohub/client.py   ioHub(Download)
from .devices.experiment import MessageEvent,LogEvent
from .constants import DeviceConstants,EventConstants
from .util import updateDict,MessageDialog, print2err,printExceptionDetailsToStdErr,ioHubError,win32MessagePump, ioHubConnectionException, ioHubServerError
from .net import UDPClientConnection
 
    def __init__(self,ioHubConfig=None,ioHubConfigAbsPath=None):        
        if ioHubConfig:
            if not isinstance(ioHubConfig,dict):
                raise ioHubError("The provided ioHub Configuration is not a dictionary.", ioHubConfig)
 
        except:
            printExceptionDetailsToStdErr()
            raise ioHubError("Error in _addDeviceToMonitor: device_class: ",device_class," . device_config: ",device_config)    
 
    def flushDataStoreFile(self):
        except:
            printExceptionDetailsToStdErr()
            raise ioHubError("Error converting ioHub Server event list response to a dict",event_list_response=eventValueList)
 
    @staticmethod
        except:
            printExceptionDetailsToStdErr()
            raise ioHubError("Error converting ioHub Server event list response to a namedtuple",event_list_response=eventValueList)
 
    # client utility methods.

src/p/s/psychopy-HEAD/psychopy/iohub/__init__.py   psychopy(Download)
from constants import EventConstants, DeviceConstants, KeyboardConstants, MouseConstants, EyeTrackerConstants
 
from util import print2err, printExceptionDetailsToStdErr, ioHubError, createErrorResult, ioHubServerError, ioHubConnectionException
from util import fix_encoding, OrderedDict, module_directory, updateDict
from util import isIterable, getCurrentDateTimeString, convertCamelToSnake

src/i/o/ioHub-HEAD/iohub/__init__.py   ioHub(Download)
 
from timebase import psychopy_available, MonotonicClock, monotonicClock
from util import (fix_encoding,OrderedDict,convertCamelToSnake,win32MessagePump,
                  print2err,printExceptionDetailsToStdErr,ioHubError,createErrorResult,
                  DeviceEventTrigger, ClearScreen, InstructionScreen,