Commit a21ff31c authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup

parent 6a006d78
...@@ -273,23 +273,19 @@ class printcore(): ...@@ -273,23 +273,19 @@ class printcore():
print "Not connected to printer." print "Not connected to printer."
def _print(self): def _print(self):
#callback for printing started
if self.startcb is not None: if self.startcb is not None:
try: #callback for printing started
self.startcb() try: self.startcb()
except: except: pass
pass while self.printing and self.printer and self.online:
while(self.printing and self.printer and self.online):
self._sendnext() self._sendnext()
self.sentlines={} self.sentlines = {}
self.log=[] self.log = []
self.sent=[] self.sent = []
if self.endcb is not None: if self.endcb is not None:
try: #callback for printing done
self.endcb() try: self.endcb()
except: except: pass
pass
#callback for printing done
def _sendnext(self): def _sendnext(self):
if not self.printer: 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