MCPcopy Create free account
hub / github.com/mhammond/pywin32 / GetActiveView

Function GetActiveView

Pythonwin/pywin/framework/scriptutils.py:116–123  ·  view source on GitHub ↗

Gets the edit control (eg, EditView) with the focus, or None

()

Source from the content-addressed store, hash-verified

114 return fname, newPathReturn
115
116def 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
125def GetActiveEditControl():
126 view = GetActiveView()

Callers 4

GetActiveViewMethod · 0.85
GetActiveEditControlFunction · 0.85
GetActiveEditorDocumentFunction · 0.85
GetActiveFileNameFunction · 0.85

Calls 2

GetMainFrameMethod · 0.80
GetActiveViewMethod · 0.80

Tested by

no test coverage detected