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
91312466
Commit
91312466
authored
Mar 05, 2012
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'experimental' of github.com:kliment/Printrun into experimental
parents
ed4cf4a0
36a2034a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
gviz.py
gviz.py
+12
-4
pronterface.py
pronterface.py
+3
-3
No files found.
gviz.py
View file @
91312466
...
...
@@ -47,13 +47,21 @@ class window(wx.Frame):
else
:
event
.
Skip
()
def
key
(
self
,
event
):
x
=
event
.
GetKeyCode
()
#print x
if
event
.
ShiftDown
():
cx
,
cy
=
self
.
p
.
translate
if
x
==
wx
.
WXK_UP
:
self
.
p
.
zoom
(
cx
,
cy
,
1.2
)
if
x
==
wx
.
WXK_DOWN
:
self
.
p
.
zoom
(
cx
,
cy
,
1
/
1.2
)
else
:
if
x
==
wx
.
WXK_UP
:
self
.
p
.
layerup
()
if
x
==
wx
.
WXK_DOWN
:
self
.
p
.
layerdown
()
#print x
#print p.lines.keys()
def
zoom
(
self
,
event
):
...
...
pronterface.py
View file @
91312466
...
...
@@ -1161,7 +1161,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
string
+=
_
(
"Loaded "
)
+
os
.
path
.
split
(
self
.
filename
)[
1
]
+
" "
except
:
pass
string
+=
(
self
.
tempreport
.
replace
(
"
\r
"
,
""
)
.
replace
(
"T
"
,
_
(
"Hotend"
))
.
replace
(
"B"
,
_
(
"Bed"
)
)
.
replace
(
"
\n
"
,
""
)
.
replace
(
"ok "
,
""
))
+
" "
string
+=
(
self
.
tempreport
.
replace
(
"
\r
"
,
""
)
.
replace
(
"T
:"
,
_
(
"Hotend"
)
+
":"
)
.
replace
(
"B:"
,
_
(
"Bed"
)
+
":"
)
.
replace
(
"
\n
"
,
""
)
.
replace
(
"ok "
,
""
))
+
" "
wx
.
CallAfter
(
self
.
tempdisp
.
SetLabel
,
self
.
tempreport
.
strip
()
.
replace
(
"ok "
,
""
))
try
:
self
.
hottgauge
.
SetValue
(
float
(
filter
(
lambda
x
:
x
.
startswith
(
"T:"
),
self
.
tempreport
.
split
())[
0
]
.
split
(
":"
)[
1
]))
...
...
@@ -1557,11 +1557,11 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
dlg
=
wx
.
MessageDialog
(
self
,
_
(
"Are you sure you want to reset the printer?"
),
_
(
"Reset?"
),
wx
.
YES
|
wx
.
NO
)
if
dlg
.
ShowModal
()
==
wx
.
ID_YES
:
self
.
p
.
reset
()
self
.
p
.
printing
=
0
wx
.
CallAfter
(
self
.
printbtn
.
SetLabel
,
_
(
"Print"
))
if
self
.
paused
:
self
.
p
.
paused
=
0
self
.
p
.
printing
=
0
wx
.
CallAfter
(
self
.
pausebtn
.
SetLabel
,
_
(
"Pause"
))
wx
.
CallAfter
(
self
.
printbtn
.
SetLabel
,
_
(
"Print"
))
self
.
paused
=
0
def
get_build_dimensions
(
self
,
bdim
):
...
...
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