mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-20 22:20:59 -04:00
added returns to warning, debug, and info
This commit is contained in:
parent
fe93ca8394
commit
a1a9d91b42
@ -85,6 +85,7 @@ class Notifier:
|
|||||||
string = (self.getTime() + self.__name + '(warning): ' + warningString)
|
string = (self.getTime() + self.__name + '(warning): ' + warningString)
|
||||||
self.__log(string)
|
self.__log(string)
|
||||||
print(string)
|
print(string)
|
||||||
|
return 1 # to allow assert(myNotify.warning("blah"))
|
||||||
|
|
||||||
def setWarning(self, bool):
|
def setWarning(self, bool):
|
||||||
"""setWarning(self, int)
|
"""setWarning(self, int)
|
||||||
@ -104,6 +105,7 @@ class Notifier:
|
|||||||
string = (self.getTime() + self.__name + '(debug): ' + debugString)
|
string = (self.getTime() + self.__name + '(debug): ' + debugString)
|
||||||
self.__log(string)
|
self.__log(string)
|
||||||
print(string)
|
print(string)
|
||||||
|
return 1 # to allow assert(myNotify.debug("blah"))
|
||||||
|
|
||||||
def setDebug(self, bool):
|
def setDebug(self, bool):
|
||||||
"""setDebug(self, int)
|
"""setDebug(self, int)
|
||||||
@ -123,6 +125,7 @@ class Notifier:
|
|||||||
string = (self.getTime() + self.__name + '(info): ' + infoString)
|
string = (self.getTime() + self.__name + '(info): ' + infoString)
|
||||||
self.__log(string)
|
self.__log(string)
|
||||||
print(string)
|
print(string)
|
||||||
|
return 1 # to allow assert(myNotify.info("blah"))
|
||||||
|
|
||||||
def getInfo(self):
|
def getInfo(self):
|
||||||
"""getInfo(self)
|
"""getInfo(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user