some more fixes
This commit is contained in:
@@ -15,7 +15,7 @@ import sys
|
||||
from PrivacyNoticeDialog import PrivacyNoticeDialog
|
||||
from IRCPanel import IRCPanel
|
||||
from AboutDialog import AboutDialog
|
||||
from NotesDialog import NotesDialog # Add this import
|
||||
from NotesDialog import NotesDialog
|
||||
|
||||
# Set up logging
|
||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
||||
@@ -358,7 +358,7 @@ class IRCFrame(wx.Frame):
|
||||
|
||||
# Tools menu
|
||||
tools_menu = wx.Menu()
|
||||
tools_menu.Append(208, "&Notes\tCtrl+T") # Add Notes menu item
|
||||
tools_menu.Append(208, "&wxNotes\tCtrl+T") # Add Notes menu item
|
||||
tools_menu.Append(201, "&WHOIS User\tCtrl+I")
|
||||
tools_menu.Append(202, "Change &Nick\tCtrl+N")
|
||||
tools_menu.AppendSeparator()
|
||||
@@ -1274,11 +1274,11 @@ if __name__ == "__main__":
|
||||
try:
|
||||
if os.name == 'nt':
|
||||
enable_high_dpi()
|
||||
else:
|
||||
pass
|
||||
app = wx.App()
|
||||
frame = IRCFrame()
|
||||
frame.SetIcon(wx.Icon(get_resource_path("icon.ico"), wx.BITMAP_TYPE_ICO))
|
||||
logger.info(f"wxID: {frame.GetId()}")
|
||||
logger.info(f"HWND: {hex(frame.GetHandle())}")
|
||||
app.MainLoop()
|
||||
except Exception as e:
|
||||
logger.critical(f"Fatal error: {e}")
|
||||
|
||||
Reference in New Issue
Block a user