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
52583643
Commit
52583643
authored
Nov 07, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:kliment/Printrun
parents
44649c64
8c3cbe06
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
39 deletions
+43
-39
pronsole.py
printrun/pronsole.py
+23
-21
pronterface.py
printrun/pronterface.py
+20
-18
No files found.
printrun/pronsole.py
View file @
52583643
...
@@ -1221,13 +1221,15 @@ class pronsole(cmd.Cmd):
...
@@ -1221,13 +1221,15 @@ class pronsole(cmd.Cmd):
def
recvcb_actions
(
self
,
l
):
def
recvcb_actions
(
self
,
l
):
if
l
.
startswith
(
"!!"
):
if
l
.
startswith
(
"!!"
):
self
.
do_pause
(
None
)
self
.
do_pause
(
None
)
msg
=
l
.
split
(
" "
,
1
)
[
1
]
msg
=
l
.
split
(
" "
,
1
)
if
self
.
silent
is
False
:
self
.
logError
(
msg
.
ljust
(
15
))
if
len
(
msg
)
>
1
and
self
.
silent
is
False
:
self
.
logError
(
msg
[
1
]
.
ljust
(
15
))
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
write
(
self
.
promptf
())
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
return
True
return
True
elif
l
.
startswith
(
"//"
):
elif
l
.
startswith
(
"//"
):
command
=
l
.
split
(
" "
,
1
)[
1
]
command
=
l
.
split
(
" "
,
1
)
if
len
(
command
)
>
1
:
command
=
command
[
1
]
self
.
log
(
_
(
"Received command
%
s"
)
%
command
)
self
.
log
(
_
(
"Received command
%
s"
)
%
command
)
command
=
command
.
split
(
":"
)
command
=
command
.
split
(
":"
)
if
len
(
command
)
==
2
and
command
[
0
]
==
"action"
:
if
len
(
command
)
==
2
and
command
[
0
]
==
"action"
:
...
...
printrun/pronterface.py
View file @
52583643
...
@@ -1676,12 +1676,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1676,12 +1676,14 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if
l
.
startswith
(
"!!"
):
if
l
.
startswith
(
"!!"
):
if
not
self
.
paused
:
if
not
self
.
paused
:
wx
.
CallAfter
(
self
.
pause
)
wx
.
CallAfter
(
self
.
pause
)
msg
=
l
.
split
(
" "
,
1
)
[
1
]
msg
=
l
.
split
(
" "
,
1
)
if
not
self
.
p
.
loud
:
if
len
(
msg
)
>
1
and
not
self
.
p
.
loud
:
wx
.
CallAfter
(
self
.
addtexttolog
,
msg
+
"
\n
"
)
wx
.
CallAfter
(
self
.
addtexttolog
,
msg
[
1
]
+
"
\n
"
)
return
True
return
True
elif
l
.
startswith
(
"//"
):
elif
l
.
startswith
(
"//"
):
command
=
l
.
split
(
" "
,
1
)[
1
]
command
=
l
.
split
(
" "
,
1
)
if
len
(
command
)
>
1
:
command
=
command
[
1
]
self
.
log
(
_
(
"Received command
%
s"
)
%
command
)
self
.
log
(
_
(
"Received command
%
s"
)
%
command
)
command
=
command
.
split
(
":"
)
command
=
command
.
split
(
":"
)
if
len
(
command
)
==
2
and
command
[
0
]
==
"action"
:
if
len
(
command
)
==
2
and
command
[
0
]
==
"action"
:
...
...
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