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
dafc89e8
Commit
dafc89e8
authored
Aug 04, 2012
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
c164d0d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
printcore.py
printcore.py
+4
-4
No files found.
printcore.py
View file @
dafc89e8
...
@@ -254,7 +254,7 @@ class printcore():
...
@@ -254,7 +254,7 @@ class printcore():
print
"Not connected to printer."
print
"Not connected to printer."
def
_print
(
self
):
def
_print
(
self
):
if
self
.
startcb
is
not
None
:
if
self
.
startcb
:
#callback for printing started
#callback for printing started
try
:
self
.
startcb
()
try
:
self
.
startcb
()
except
:
pass
except
:
pass
...
@@ -263,7 +263,7 @@ class printcore():
...
@@ -263,7 +263,7 @@ class printcore():
self
.
sentlines
=
{}
self
.
sentlines
=
{}
self
.
log
=
[]
self
.
log
=
[]
self
.
sent
=
[]
self
.
sent
=
[]
if
self
.
endcb
is
not
None
:
if
self
.
endcb
:
#callback for printing done
#callback for printing done
try
:
self
.
endcb
()
try
:
self
.
endcb
()
except
:
pass
except
:
pass
...
@@ -312,8 +312,8 @@ class printcore():
...
@@ -312,8 +312,8 @@ class printcore():
if
self
.
printer
:
if
self
.
printer
:
self
.
sent
.
append
(
command
)
self
.
sent
.
append
(
command
)
if
self
.
loud
:
if
self
.
loud
:
print
"SENT: "
,
command
print
"SENT: "
,
command
if
self
.
sendcb
is
not
None
:
if
self
.
sendcb
:
try
:
self
.
sendcb
(
command
)
try
:
self
.
sendcb
(
command
)
except
:
pass
except
:
pass
try
:
try
:
...
...
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