def setup(self): self.win = Window((128, 128), pos=(50, 50), monitor="testMonitor", allowGUI=False, autoLog=False) self.error = _BaseErrorHandler() self.textbox = TextBox2( self.win, "A PsychoPy zealot knows a smidge of wx, but JavaScript is the question.", "Noto Sans", alignment="top left", lineSpacing=1, pos=(0, 0), size=(1, 1), units='height', letterHeight=0.1, colorSpace="rgb") self.obj = self.textbox # point to textbox for mixin tests # Pixel which is the border color self.borderPoint = (0, 0) self.borderUsed = True # Pixel which is the fill color self.fillPoint = (2, 2) self.fillUsed = True # Textbox foreground is too unreliable due to fonts for pixel analysis self.foreUsed = False
def setup_class(self): self.win = Window([128, 128], pos=[50, 50], allowGUI=False, autoLog=False) self.error = _BaseErrorHandler() self.textbox = TextBox2(self.win, "", "Noto Sans", pos=(0, 0), size=(1, 1), units='height', letterHeight=0.1, colorSpace="rgb")
def setup(self): # Create experiment and test components exp = Experiment() allComp = getAllComponents(fetchIcons=False) # Polygon self.polygonComp = allComp["PolygonComponent"](parentName='trial', exp=exp) self.polygonComp.params['units'].val = 'height' self.polygonComp.params['startType'].val = "time (s)" self.polygonComp.params['stopType'].val = "time (s)" # Code component self.codeComp = allComp["CodeComponent"](parentName='trial', exp=exp) self.codeComp.params['Begin Experiment'].val = "(\n" self.codeComp.params['Begin JS Experiment'].val = "{\n" # Set ErrorHandler sys.stderr = self.error = _BaseErrorHandler()
def setup_class(self): self.win = Window([128, 128], pos=[50, 50], allowGUI=False, autoLog=False) self.error = _BaseErrorHandler() self.textbox = TextBox2(self.win, "", "Noto Sans", pos=(0, 0), size=(1, 1), units='height', letterHeight=0.1, colorSpace="rgb") self.obj = self.textbox # point to textbox for mixin tests # Pixel which is the border color self.borderPoint = (0, 0) self.borderUsed = True # Pixel which is the fill color self.fillPoint = (2, 2) self.fillUsed = True # Textbox foreground is too unreliable due to fonts for pixel analysis self.foreUsed = False
def setup(self): # Set ErrorHandler self.error = _BaseErrorHandler() # Create experiment, trial, flow and test components self.exp = Experiment() trial = self.exp.addRoutine('trial') self.exp.flow.addRoutine(trial, 0) allComp = getAllComponents(fetchIcons=False) # Polygon self.polygonComp = allComp["PolygonComponent"](parentName='trial', exp=self.exp) trial.addComponent(self.polygonComp) self.polygonComp.params['units'].val = 'height' self.polygonComp.params['startType'].val = "time (s)" self.polygonComp.params['stopType'].val = "time (s)" # Code component self.codeComp = allComp["CodeComponent"](parentName='trial', exp=self.exp) self.codeComp.params['Begin Experiment'].val = "(\n" self.codeComp.params['Begin JS Experiment'].val = "{\n"
def setup(self): # Set ErrorHandler sys.stderr = self.error = _BaseErrorHandler()
def setup_class(self): self.win = visual.Window([128,128], pos=[50,50], allowGUI=False, autoLog=False) self.error = _BaseErrorHandler()