##// END OF EJS Templates
Remove the import * and specified what to import specifically instead
Nicolas Rougier -
Show More
@@ -312,7 +312,9 b' class InputHookManager(object):'
312 """
312 """
313
313
314 import OpenGL.GLUT as glut
314 import OpenGL.GLUT as glut
315 from IPython.lib.inputhookglut import *
315 from IPython.lib.inputhookglut import glut_display_mode, \
316 glut_close, glut_display, \
317 glut_idle, inputhook_glut
316
318
317 if not self._apps.has_key(GUI_GLUT):
319 if not self._apps.has_key( GUI_GLUT ):
318 glut.glutInit(sys.argv)
320 glut.glutInit( sys.argv )
@@ -343,7 +345,8 b' class InputHookManager(object):'
343 dummy one and set the timer to a dummy timer that will be triggered
345 dummy one and set the timer to a dummy timer that will be triggered
344 very far in the future.
346 very far in the future.
345 """
347 """
346 from glut_support import *
348 import OpenGL.GLUT as glut
349 from glut_support import glutMainLoopEvent
347
350
348 glut.glutHideWindow() # This is an event to be processed below
351 glut.glutHideWindow() # This is an event to be processed below
349 glutMainLoopEvent()
352 glutMainLoopEvent()
General Comments 0
You need to be logged in to leave comments. Login now