fix: Python shutdown errors

This commit is contained in:
rtw1x1
2026-01-21 08:50:33 +00:00
parent b72982cc62
commit a31c0bfacf
7 changed files with 32 additions and 29 deletions

View File

@@ -98,7 +98,8 @@ class Window(object):
self.Hide()
def __del__(self):
wndMgr.Destroy(self.hWnd)
if wndMgr and self.hWnd:
wndMgr.Destroy(self.hWnd)
def RegisterWindow(self, layer):
self.hWnd = wndMgr.Register(self, layer)