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
b3053854
Commit
b3053854
authored
Jun 09, 2011
by
kliment
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow copy from pronterface window. rstrip incoming lines.
parent
5fc2fe09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
pronsole.py
pronsole.py
+1
-1
pronterface.py
pronterface.py
+10
-10
No files found.
pronsole.py
View file @
b3053854
...
...
@@ -472,7 +472,7 @@ class pronsole(cmd.Cmd):
def
recvcb
(
self
,
l
):
if
"T:"
in
l
:
self
.
tempreadings
=
l
tstring
=
l
.
r
eplace
(
"
\r
"
,
""
)
.
replace
(
"
\n
"
,
""
)
tstring
=
l
.
r
strip
(
)
if
(
tstring
!=
"ok"
and
not
tstring
.
startswith
(
"ok T"
)
and
not
tstring
.
startswith
(
"T:"
)
and
not
self
.
listing
and
not
self
.
monitoring
):
print
tstring
sys
.
stdout
.
write
(
self
.
prompt
)
...
...
pronterface.py
View file @
b3053854
...
...
@@ -66,14 +66,14 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
[
"Y-1"
,(
"move Y -1"
),(
55
,
260
),
ycol
,(
55
,
25
)],
[
"Y-10"
,(
"move Y -10"
),(
55
,
285
),
ycol
,(
55
,
25
)],
[
"Y-100"
,(
"move Y -100"
),(
55
,
310
),
ycol
,(
55
,
25
)],
[
"Z+10"
,(
"move Z 10"
),(
110
,
110
),
zcol
,(
55
,
25
)],
[
"Z+1"
,(
"move Z 1"
),(
110
,
135
),
zcol
,(
55
,
25
)],
[
"Z+0.1"
,(
"move Z 0.1"
),(
110
,
160
),
zcol
,(
55
,
25
)],
[
"HomeZ"
,(
"home Z"
),(
110
,
185
),
zcol
,(
55
,
25
)],
[
"Z-0.1"
,(
"move Z -0.1"
),(
110
,
210
),
zcol
,(
55
,
25
)],
[
"Z-1"
,(
"move Z -1"
),(
110
,
235
),
zcol
,(
55
,
25
)],
[
"Z-10"
,(
"move Z -10"
),(
110
,
260
),
zcol
,(
55
,
25
)],
[
"Home
\n
all"
,(
"home"
),(
110
,
310
-
25
),(
250
,
250
,
250
),(
55
,
50
)],
[
"Z+10"
,(
"move Z 10"
),(
110
,
110
+
25
),
zcol
,(
55
,
25
)],
[
"Z+1"
,(
"move Z 1"
),(
110
,
135
+
25
),
zcol
,(
55
,
25
)],
[
"Z+0.1"
,(
"move Z 0.1"
),(
110
,
160
+
25
),
zcol
,(
55
,
25
)],
[
"HomeZ"
,(
"home Z"
),(
110
,
185
+
25
),
zcol
,(
55
,
25
)],
[
"Z-0.1"
,(
"move Z -0.1"
),(
110
,
210
+
25
),
zcol
,(
55
,
25
)],
[
"Z-1"
,(
"move Z -1"
),(
110
,
235
+
25
),
zcol
,(
55
,
25
)],
[
"Z-10"
,(
"move Z -10"
),(
110
,
260
+
25
),
zcol
,(
55
,
25
)],
[
"Home
"
,(
"home"
),(
110
,
310
),(
250
,
250
,
250
),(
55
,
25
)],
[
"Extrude"
,(
"extrude"
),(
0
,
397
+
1
),(
200
,
200
,
200
),(
65
,
25
)],
[
"Reverse"
,(
"reverse"
),(
0
,
397
+
28
),(
200
,
200
,
200
),(
65
,
25
)],
]
...
...
@@ -212,7 +212,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
commandbox
=
wx
.
TextCtrl
(
self
.
panel
,
size
=
(
250
,
30
),
pos
=
(
440
,
420
),
style
=
wx
.
TE_PROCESS_ENTER
)
self
.
commandbox
.
Bind
(
wx
.
EVT_TEXT_ENTER
,
self
.
sendline
)
self
.
logbox
=
wx
.
TextCtrl
(
self
.
panel
,
size
=
(
350
,
340
),
pos
=
(
440
,
75
),
style
=
wx
.
TE_MULTILINE
)
self
.
logbox
.
Disable
(
)
self
.
logbox
.
SetEditable
(
0
)
self
.
sendbtn
=
wx
.
Button
(
self
.
panel
,
-
1
,
"Send"
,
pos
=
(
700
,
420
))
self
.
sendbtn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
sendline
)
self
.
monitorbox
=
wx
.
CheckBox
(
self
.
panel
,
-
1
,
"Monitor printer"
,
pos
=
(
500
,
40
))
...
...
@@ -328,7 +328,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def
recvcb
(
self
,
l
):
if
"T:"
in
l
:
self
.
tempreport
=
l
tstring
=
l
.
r
eplace
(
"
\n
"
,
""
)
.
replace
(
"
\r
"
,
""
)
tstring
=
l
.
r
strip
(
)
#print tstring
if
(
tstring
!=
"ok"
):
print
tstring
...
...
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