# Path: pygaze/libscreen.py

# 
# Path: pygaze/libtime.py
# def expstart():
# def get_time():
# def pause(pausetime):
# def expend():
# 
# Path: pygaze/libinput.py

# 
# Path: pygaze/liblog.py

# 
# Path: pygaze/settings.py
# class Settings(object):
#     def __init__(self):
#     def read_module(self, mod):
#     def __getattr__(self, setting):
#     def __setattr__(self, setting, value):


import random
from pygaze import libscreen
from pygaze import libtime
from pygaze import libinput
from pygaze import liblog
from pygaze import settings
# example script for using PyGaze

# # # # #
# importing the relevant libraries

# # # # #
# setup the experiment

# create display object
disp = libscreen.Display()

# create keyboard object
kb = libinput.Keyboard(keylist=['left','right','escape'], timeout=2000)

# create logfile object
log = liblog.Logfile()
log.write(["trialnr", "trialtype", "response", "RT", "correct"])

# create screens
fixscreen = libscreen.Screen()
fixscreen.draw_fixation(fixtype='cross',pw=2)
targetscreens = {}
targetscreens['left'] = libscreen.Screen()

# Path: pygaze/libscreen.py

# 
# Path: pygaze/libtime.py
# def expstart():
# def get_time():
# def pause(pausetime):
# def expend():
# 
# Path: pygaze/libinput.py

# 
# Path: pygaze/liblog.py

# 
# Path: pygaze/settings.py
# class Settings(object):
#     def __init__(self):
#     def read_module(self, mod):
#     def __getattr__(self, setting):
#     def __setattr__(self, setting, value):


# Path: examples/simple_experiment/simple_experiment.py
import random
from pygaze import libscreen
from pygaze import libtime
from pygaze import libinput
from pygaze import liblog
from pygaze import settings

# example script for using PyGaze

# # # # #
# importing the relevant libraries

# # # # #
# setup the experiment

# create display object
disp = libscreen.Display()

# create keyboard object
kb = libinput.Keyboard(keylist=['left','right','escape'], timeout=2000)

# create logfile object
log = liblog.Logfile()
log.write(["trialnr", "trialtype", "response", "RT", "correct"])

# create screens
fixscreen = libscreen.Screen()
fixscreen.draw_fixation(fixtype='cross',pw=2)
targetscreens = {}
targetscreens['left'] = libscreen.Screen()

targetscreens['left'].draw_circle(pos=(settings.DISPSIZE[0]*0.25,settings.DISPSIZE[1]/2), fill=True)