mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-03-14 09:28:03 -06:00
Phoenix: fix system tray icon.
This commit is contained in:
parent
bf4c09d0bb
commit
e0e1f6f0f9
@ -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__()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user