Show More
@@ -154,7 +154,9 b' def inputhook_wx3(context):' | |||||
154 | def inputhook_wxphoenix(context): |
|
154 | def inputhook_wxphoenix(context): | |
155 | """Run the wx event loop until the user provides more input. |
|
155 | """Run the wx event loop until the user provides more input. | |
156 |
|
156 | |||
157 | This function uses the same approach to that used in |
|
157 | This input hook is suitable for use with wxPython >= 4 (a.k.a. Phoenix). | |
|
158 | ||||
|
159 | It uses the same approach to that used in | |||
158 | ipykernel.eventloops.loop_wx. The wx.MainLoop is executed, and a wx.Timer |
|
160 | ipykernel.eventloops.loop_wx. The wx.MainLoop is executed, and a wx.Timer | |
159 | is used to periodically poll the context for input. As soon as input is |
|
161 | is used to periodically poll the context for input. As soon as input is | |
160 | ready, the wx.MainLoop is stopped. |
|
162 | ready, the wx.MainLoop is stopped. |
General Comments 0
You need to be logged in to leave comments.
Login now