@@ -83,7 +83,7 @@ class BasePluginManager:
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""" This function should only be run once by get_instance() """
|
""" This function should only be run once by get_instance() """
|
||||||
if BasePluginManager.__instance is not 1:
|
if BasePluginManager.__instance != 1:
|
||||||
raise Exception("This class is a singleton. "
|
raise Exception("This class is a singleton. "
|
||||||
"Use the get_instance() method")
|
"Use the get_instance() method")
|
||||||
|
|
||||||
|
@@ -1135,7 +1135,7 @@ class PluginRegister:
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""" This function should only be run once by get_instance() """
|
""" This function should only be run once by get_instance() """
|
||||||
if PluginRegister.__instance is not 1:
|
if PluginRegister.__instance != 1:
|
||||||
raise Exception("This class is a singleton. "
|
raise Exception("This class is a singleton. "
|
||||||
"Use the get_instance() method")
|
"Use the get_instance() method")
|
||||||
self.stable_only = True
|
self.stable_only = True
|
||||||
|
@@ -71,7 +71,7 @@ class GuiPluginManager(Callback):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
""" This function should only be run once by get_instance() """
|
""" This function should only be run once by get_instance() """
|
||||||
if GuiPluginManager.__instance is not 1:
|
if GuiPluginManager.__instance != 1:
|
||||||
raise Exception("This class is a singleton. "
|
raise Exception("This class is a singleton. "
|
||||||
"Use the get_instance() method")
|
"Use the get_instance() method")
|
||||||
|
|
||||||
|
@@ -113,7 +113,7 @@ class MessageLayer(GObject.GObject, osmgpsmap.MapLayer):
|
|||||||
"""
|
"""
|
||||||
Add a message
|
Add a message
|
||||||
"""
|
"""
|
||||||
self.message += "\n%s" % message if self.message is not "" else message
|
self.message += "\n%s" % message if self.message else message
|
||||||
|
|
||||||
def do_draw(self, gpsmap, ctx):
|
def do_draw(self, gpsmap, ctx):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user