GUI: Add error handling for object deletion

This commit is contained in:
Mykola Grymalyuk
2023-05-07 13:29:13 -06:00
parent aaf7519e94
commit bd70c4a24a
5 changed files with 19 additions and 22 deletions
+11
View File
@@ -10,6 +10,17 @@ from pathlib import Path
from resources import constants
class GenerateMenubar:
def __init__(self) -> None:
self.menubar: wx.MenuBar = None
def generate(self) -> wx.MenuBar:
self.menubar = wx.MenuBar()
return self.menubar
class PayloadMount:
def __init__(self, global_constants: constants.Constants, frame: wx.Frame) -> None: