Cleanup
parent
c164d0d144
commit
dafc89e81a
|
@ -254,7 +254,7 @@ class printcore():
|
|||
print "Not connected to printer."
|
||||
|
||||
def _print(self):
|
||||
if self.startcb is not None:
|
||||
if self.startcb:
|
||||
#callback for printing started
|
||||
try: self.startcb()
|
||||
except: pass
|
||||
|
@ -263,7 +263,7 @@ class printcore():
|
|||
self.sentlines = {}
|
||||
self.log = []
|
||||
self.sent = []
|
||||
if self.endcb is not None:
|
||||
if self.endcb:
|
||||
#callback for printing done
|
||||
try: self.endcb()
|
||||
except: pass
|
||||
|
@ -313,7 +313,7 @@ class printcore():
|
|||
self.sent.append(command)
|
||||
if self.loud:
|
||||
print "SENT: ", command
|
||||
if self.sendcb is not None:
|
||||
if self.sendcb:
|
||||
try: self.sendcb(command)
|
||||
except: pass
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue