Closed smathot closed 10 years ago
Good point, that applies to some of the other libraries as well. I'm pondering over it... Will report back if I figure something out (your way seems like a good approach, I'll see if I can find a way to integrate it within all of the libs).
Closing due to #12.
Most of the settings can be overridden by creating
constants.py
or by passing keyword arguments to the constructor. However, the keyword way gave me some trouble. For example, I would expect this to work:Instead it gives an
Exception
, becausepygame
has not been imported. The problem appears to be due to the fact that theimport
statements are based only on the values set in eitherdefaults.py
orconstants.py
, but not based on the keywords. I'm not sure what the best solution would be. One option would be to create a function that ascertains thatpygame
is imported, and call this function in the constructor ofDisplay
,Screen
, and wherever we need to make sure thatpygame
is available. An analogous function would need to be created forpsychopy
, of course.