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
faa01969
Commit
faa01969
authored
Jun 29, 2011
by
Keegi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save pronterface changes into settings, fix not taking feedrate spinners into account
parent
6ed74e6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
pronterface.py
pronterface.py
+11
-4
No files found.
pronterface.py
View file @
faa01969
...
...
@@ -396,15 +396,15 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
def
setfeeds
(
self
,
e
):
try
:
self
.
feede
=
int
(
self
.
efeedc
.
GetValue
())
self
.
settings
.
_set
(
"e_feedrate"
,
self
.
efeedc
.
GetValue
())
except
:
pass
try
:
self
.
feedz
=
int
(
self
.
zfeedc
.
GetValue
())
self
.
settings
.
_set
(
"z_feedrate"
,
self
.
zfeedc
.
GetValue
())
except
:
pass
try
:
self
.
feedxy
=
int
(
self
.
xyfeedc
.
GetValue
())
self
.
settings
.
_set
(
"xy_feedrate"
,
self
.
xyfeedc
.
GetValue
())
except
:
pass
...
...
@@ -436,6 +436,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
statuscheck
=
0
self
.
p
.
recvcb
=
None
self
.
p
.
disconnect
()
self
.
save_in_rc
(
"set xy_feedrate"
,
"set xy_feedrate
%
d"
%
self
.
settings
.
xy_feedrate
)
self
.
save_in_rc
(
"set z_feedrate"
,
"set z_feedrate
%
d"
%
self
.
settings
.
z_feedrate
)
self
.
save_in_rc
(
"set e_feedrate"
,
"set e_feedrate
%
d"
%
self
.
settings
.
e_feedrate
)
try
:
self
.
gwindow
.
Destroy
()
except
:
...
...
@@ -734,6 +737,10 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
p
.
send_now
(
"M26 S0"
)
self
.
p
.
connect
(
port
,
baud
)
self
.
statuscheck
=
True
if
port
!=
self
.
settings
.
port
:
self
.
set
(
"port"
,
port
)
if
baud
!=
self
.
settings
.
baudrate
:
self
.
set
(
"baudrate"
,
str
(
baud
))
threading
.
Thread
(
target
=
self
.
statuschecker
)
.
start
()
...
...
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