def __init__(self, experiment, auto_prepare=True, **style_args): canvas.canvas.__init__(self, experiment, auto_prepare=auto_prepare, **style_args) psycho_coordinates.__init__(self) self.min_penwidth = 1 # We need to map the simple font names used by OpenSesame onto the # actual names of the fonts. self.font_map = { u"sans" : u"Droid Sans", u"serif" : u"Droid Serif", u"mono" : u"Droid Sans Mono", u'hebrew' : u'Alef', u'hindi' : u'Lohit Hindi', u'arabic' : u'Droid Arabic Naskh', u'chinese-japanese-korean' : u'WenQuanYi Micro Hei', } self.clear()
def __init__(self, experiment, **resp_args): mouse.mouse.__init__(self, experiment, **resp_args) psycho_coordinates.__init__(self) self.mouse = event.Mouse(visible=False, win=self.experiment.window) event.mouseButtons = [0, 0, 0]