def testUsingPsychoPyMonitorConfig():
 io = launchHubServer(psychopy_monitor_name='testMonitor')
 display = io.devices.display
 print('Display Psychopy Monitor Name: ', display.getPsychopyMonitorName())
 print('Display Default Eye Distance: ', display.getDefaultEyeDistance())
 print('Display Physical Dimensions: ', display.getPhysicalDimensions())
 io.quit()

def testUsingPsychoPyMonitorConfig ( ) : io = launchHubServer ( psychopy_monitor_name = 'testMonitor' ) display = io . devices . display print ( 'Display Psychopy Monitor Name: ' , display . getPsychopyMonitorName ( ) ) print ( 'Display Default Eye Distance: ' , display . getDefaultEyeDistance ( ) ) print ( 'Display Physical Dimensions: ' , display . getPhysicalDimensions ( ) ) io . quit ( )
testusingpsychopymonitorconfig illustrates using the launchhubserver function and providing a psychopy monitor configuration file name .