further fixing in WinTables for dealing with a window that has disappeared
This commit is contained in:
parent
bad3fac16e
commit
fed287334a
|
@ -97,7 +97,10 @@ class Table(Table_Window):
|
|||
return None
|
||||
|
||||
def get_window_title(self):
|
||||
try: # after window is destroyed, self.window = attribute error
|
||||
return win32gui.GetWindowText(self.window)
|
||||
except AttributeError:
|
||||
return ""
|
||||
|
||||
# def get_nt_exe(self, hwnd):
|
||||
# """Finds the name of the executable that the given window handle belongs to."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user