mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Changed codebase's syntax before attempt the python3 migration later. #273
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
""" A cross platform notification system.
|
||||
Under Linux, the wx.NotificationMessage does not show a notification on the taskbar, so we decided to use dbus for showing notifications for linux and wx for Windows."""
|
||||
from __future__ import absolute_import
|
||||
import platform
|
||||
|
||||
notify = None
|
||||
@@ -8,10 +9,10 @@ notify = None
|
||||
def setup():
|
||||
global notify
|
||||
if platform.system() == "Windows":
|
||||
import windows
|
||||
from . import windows
|
||||
notify = windows.notification()
|
||||
elif platform.system() == "Linux":
|
||||
import linux
|
||||
from . import linux
|
||||
notify = linux.notification()
|
||||
|
||||
def send(title, text):
|
||||
|
Reference in New Issue
Block a user