Fix SyntaxError on inputhookglut.py
@@ -46,7 +46,6 @@ from pydev_ipython.inputhook import stdin_ready
# Should probably be an IPython option
glut_fps = 60
-
# Display mode : double buffeed + rgba + depth
# Should probably be an IPython option
glut_display_mode = (glut.GLUT_DOUBLE |
@@ -74,32 +73,34 @@ else:
'''Your glut implementation does not allow interactive sessions. '''
'''Consider installing freeglut.''')
-
#-----------------------------------------------------------------------------
# Callback functions
#-----------------------------------------------------------------------------
+
def glut_display():
# Dummy display function
pass
+
def glut_idle():
# Dummy idle function
pass
+
def glut_close():
# Close function only hides the current window
glut.glutHideWindow()
glutMainLoopEvent()
+
def glut_int_handler(signum, frame):
# Catch sigint and print the defautl message
signal.signal(signal.SIGINT, signal.default_int_handler)
- print '\nKeyboardInterrupt'
+ print('\nKeyboardInterrupt')
# Need to reprint the prompt at this stage
-
#-----------------------------------------------------------------------------
# Code
#-----------------------------------------------------------------------------
