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
97e34f7a
Commit
97e34f7a
authored
Nov 03, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: int => boolean
parent
44ceb6ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
pronsole.py
printrun/pronsole.py
+2
-2
pronterface.py
printrun/pronterface.py
+4
-4
No files found.
printrun/pronsole.py
View file @
97e34f7a
...
@@ -1095,12 +1095,12 @@ class pronsole(cmd.Cmd):
...
@@ -1095,12 +1095,12 @@ class pronsole(cmd.Cmd):
if
"File selected"
in
l
:
if
"File selected"
in
l
:
self
.
log
(
_
(
"Starting print"
))
self
.
log
(
_
(
"Starting print"
))
self
.
p
.
send_now
(
"M24"
)
self
.
p
.
send_now
(
"M24"
)
self
.
sdprinting
=
1
self
.
sdprinting
=
True
# self.recvlisteners.remove(self.waitforsdresponse)
# self.recvlisteners.remove(self.waitforsdresponse)
return
return
if
"Done printing file"
in
l
:
if
"Done printing file"
in
l
:
self
.
log
(
l
)
self
.
log
(
l
)
self
.
sdprinting
=
0
self
.
sdprinting
=
False
self
.
recvlisteners
.
remove
(
self
.
waitforsdresponse
)
self
.
recvlisteners
.
remove
(
self
.
waitforsdresponse
)
return
return
if
"SD printing byte"
in
l
:
if
"SD printing byte"
in
l
:
...
...
printrun/pronterface.py
View file @
97e34f7a
...
@@ -1715,9 +1715,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1715,9 +1715,9 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def
listfiles
(
self
,
line
,
ignored
=
False
):
def
listfiles
(
self
,
line
,
ignored
=
False
):
if
"Begin file list"
in
line
:
if
"Begin file list"
in
line
:
self
.
sdlisting
=
1
self
.
sdlisting
=
True
elif
"End file list"
in
line
:
elif
"End file list"
in
line
:
self
.
sdlisting
=
0
self
.
sdlisting
=
False
self
.
recvlisteners
.
remove
(
self
.
listfiles
)
self
.
recvlisteners
.
remove
(
self
.
listfiles
)
wx
.
CallAfter
(
self
.
filesloaded
)
wx
.
CallAfter
(
self
.
filesloaded
)
elif
self
.
sdlisting
:
elif
self
.
sdlisting
:
...
@@ -1732,13 +1732,13 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1732,13 +1732,13 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
l
)
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
l
)
if
"File selected"
in
l
:
if
"File selected"
in
l
:
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
_
(
"Starting print"
))
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
_
(
"Starting print"
))
self
.
sdprinting
=
1
self
.
sdprinting
=
True
self
.
p
.
send_now
(
"M24"
)
self
.
p
.
send_now
(
"M24"
)
self
.
startcb
()
self
.
startcb
()
return
return
if
"Done printing file"
in
l
:
if
"Done printing file"
in
l
:
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
l
)
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
l
)
self
.
sdprinting
=
0
self
.
sdprinting
=
False
self
.
recvlisteners
.
remove
(
self
.
waitforsdresponse
)
self
.
recvlisteners
.
remove
(
self
.
waitforsdresponse
)
self
.
endcb
()
self
.
endcb
()
return
return
...
...
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