mirror of
				https://github.com/MCV-Software/TWBlue.git
				synced 2025-10-31 20:22:01 +00:00 
			
		
		
		
	Phoenix: fix system tray icon.
This commit is contained in:
		| @@ -1,4 +1,5 @@ | |||||||
| import wx | import wx | ||||||
|  | from wx import adv | ||||||
| import paths | import paths | ||||||
| import languageHandler | import languageHandler | ||||||
| import sys | import sys | ||||||
| @@ -52,8 +53,8 @@ NOTEBOOK_PAGE_CHANGED = wx.EVT_TREEBOOK_PAGE_CHANGED | |||||||
| RADIOBUTTON = wx.EVT_RADIOBUTTON | RADIOBUTTON = wx.EVT_RADIOBUTTON | ||||||
|  |  | ||||||
| # Taskbar mouse clicks. | # Taskbar mouse clicks. | ||||||
| TASKBAR_RIGHT_CLICK = wx.EVT_TASKBAR_RIGHT_DOWN | TASKBAR_RIGHT_CLICK = adv.EVT_TASKBAR_RIGHT_DOWN | ||||||
| TASKBAR_LEFT_CLICK = wx.EVT_TASKBAR_LEFT_DOWN | TASKBAR_LEFT_CLICK = adv.EVT_TASKBAR_LEFT_DOWN | ||||||
|  |  | ||||||
| def exit_application(): | def exit_application(): | ||||||
| 	""" Closes the current window cleanly. """ | 	""" Closes the current window cleanly. """ | ||||||
|   | |||||||
| @@ -19,11 +19,12 @@ | |||||||
| ############################################################ | ############################################################ | ||||||
|  |  | ||||||
| import wx | import wx | ||||||
|  | from wx import adv | ||||||
| import application | import application | ||||||
| import paths | import paths | ||||||
| import os | import os | ||||||
|  |  | ||||||
| class SysTrayIcon(wx.TaskBarIcon): | class SysTrayIcon(adv.TaskBarIcon): | ||||||
|  |  | ||||||
| 	def __init__(self): | 	def __init__(self): | ||||||
| 		super(SysTrayIcon, self).__init__() | 		super(SysTrayIcon, self).__init__() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Bill Dengler
					Bill Dengler