Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
a21ff31c
Commit
a21ff31c
authored
Aug 03, 2012
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
6a006d78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
printcore.py
printrun/printcore.py
+10
-14
No files found.
printrun/printcore.py
View file @
a21ff31c
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment