Commit a21ff31c authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup

parent 6a006d78
......@@ -273,23 +273,19 @@ class printcore():
print "Not connected to printer."
def _print(self):
#callback for printing started
if self.startcb is not None:
try:
self.startcb()
except:
pass
while(self.printing and self.printer and self.online):
#callback for printing started
try: self.startcb()
except: pass
while self.printing and self.printer and self.online:
self._sendnext()
self.sentlines={}
self.log=[]
self.sent=[]
self.sentlines = {}
self.log = []
self.sent = []
if self.endcb is not None:
try:
self.endcb()
except:
pass
#callback for printing done
try: self.endcb()
except: pass
def _sendnext(self):
if not self.printer:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment