Gets the edit control (eg, EditView) with the focus, or None
()
| 114 | return fname, newPathReturn |
| 115 | |
| 116 | def GetActiveView(): |
| 117 | """Gets the edit control (eg, EditView) with the focus, or None |
| 118 | """ |
| 119 | try: |
| 120 | childFrame, bIsMaximised = win32ui.GetMainFrame().MDIGetActive() |
| 121 | return childFrame.GetActiveView() |
| 122 | except win32ui.error: |
| 123 | return None |
| 124 | |
| 125 | def GetActiveEditControl(): |
| 126 | view = GetActiveView() |
no test coverage detected