![]() ![]() For example, the color and font properties from text components in the Builder are also available in the Coder interface as arguments (and attributes) of the corresponding component class. Moreover, each component has largely the same properties in the Builder as in the Coder. For example, to add a text component, you can use the TextStim class from the psychopy.visual module and to add a sound component, you can use the Sound component from the psychopy.sound module.īasically, every component from the Builder has an equivalent in the psychopy package. In the coder, however, these components are implemented in different classes from the psychopy package. Like in the Builder, components are the “bread and butter” in the Coder interface as well. # END BODY OF EXPERIMENT # Finish experiment by closing window and quitting win. " ) # Initialize a fullscreen window with my monitor (HD format) size # and my monitor specification called "samsung" from the monitor center win = Window ( size = ( 1920, 1080 ), fullscr = False, monitor = 'samsung' ) # Also initialize a mouse, for later # We'll set it to invisible for now mouse = Mouse ( visible = False ) # Initialize a (global) clock clock = Clock () # Initialize Keyboard kb = Keyboard () # START BODY OF EXPERIMENT # This is where we'll add stuff from the second # Coder tutorial. From psychopy.gui import DlgFromDict from psychopy.visual import Window from re import Clock, quit, wait from psychopy.event import Mouse from import Keyboard # DIALOG BOX ROUTINE # exp_info =. ![]()
0 Comments
Leave a Reply. |