Changed codebase's syntax before attempt the python3 migration later. #273

This commit is contained in:
2018-11-22 13:35:19 -06:00
parent 4391e3d3de
commit 221d1d413b
53 changed files with 264 additions and 190 deletions

View File

@@ -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):