diff options
Diffstat (limited to 'helpers.py')
-rw-r--r-- | helpers.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -137,4 +137,9 @@ def decomposePoly(vertices): nv -= 1 # reset error detection count = 2 * nv - return result
\ No newline at end of file + return result + +def cast_tuple_to_int(tuple): + """Cast tuple values to ints to avoid gtk+ and pygame's dislike of floats. + """ + return [int(i) for i in tuple] |