##// END OF EJS Templates
Reverting whitespace changes to inputhook.py.
Thomi Richards -
Show More
@@ -101,7 +101,7 b' class InputHookManager(object):'
101 This class installs various hooks under ``PyOSInputHook`` to handle
101 This class installs various hooks under ``PyOSInputHook`` to handle
102 GUI event loop integration.
102 GUI event loop integration.
103 """
103 """
104
104
105 def __init__(self):
105 def __init__(self):
106 if ctypes is None:
106 if ctypes is None:
107 warn("IPython GUI event loop requires ctypes, %gui will not be available\n")
107 warn("IPython GUI event loop requires ctypes, %gui will not be available\n")
@@ -223,7 +223,7 b' class InputHookManager(object):'
223
223
224 def enable_qt4(self, app=None):
224 def enable_qt4(self, app=None):
225 """Enable event loop integration with PyQt4.
225 """Enable event loop integration with PyQt4.
226
226
227 Parameters
227 Parameters
228 ----------
228 ----------
229 app : Qt Application, optional.
229 app : Qt Application, optional.
@@ -289,7 +289,7 b' class InputHookManager(object):'
289
289
290 def disable_gtk(self):
290 def disable_gtk(self):
291 """Disable event loop integration with PyGTK.
291 """Disable event loop integration with PyGTK.
292
292
293 This merely sets PyOS_InputHook to NULL.
293 This merely sets PyOS_InputHook to NULL.
294 """
294 """
295 self.clear_inputhook()
295 self.clear_inputhook()
@@ -320,7 +320,7 b' class InputHookManager(object):'
320
320
321 def disable_tk(self):
321 def disable_tk(self):
322 """Disable event loop integration with Tkinter.
322 """Disable event loop integration with Tkinter.
323
323
324 This merely sets PyOS_InputHook to NULL.
324 This merely sets PyOS_InputHook to NULL.
325 """
325 """
326 self.clear_inputhook()
326 self.clear_inputhook()
@@ -346,7 +346,7 b' class InputHookManager(object):'
346 without first creating a window. You should thus not create another
346 without first creating a window. You should thus not create another
347 window but use instead the created one. See 'gui-glut.py' in the
347 window but use instead the created one. See 'gui-glut.py' in the
348 docs/examples/lib directory.
348 docs/examples/lib directory.
349
349
350 The default screen mode is set to:
350 The default screen mode is set to:
351 glut.GLUT_DOUBLE | glut.GLUT_RGBA | glut.GLUT_DEPTH
351 glut.GLUT_DOUBLE | glut.GLUT_RGBA | glut.GLUT_DEPTH
352 """
352 """
@@ -380,7 +380,7 b' class InputHookManager(object):'
380
380
381 def disable_glut(self):
381 def disable_glut(self):
382 """Disable event loop integration with glut.
382 """Disable event loop integration with glut.
383
383
384 This sets PyOS_InputHook to NULL and set the display function to a
384 This sets PyOS_InputHook to NULL and set the display function to a
385 dummy one and set the timer to a dummy timer that will be triggered
385 dummy one and set the timer to a dummy timer that will be triggered
386 very far in the future.
386 very far in the future.
General Comments 0
You need to be logged in to leave comments. Login now