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
97988f7e
Commit
97988f7e
authored
Oct 20, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add proper loading message to pronterface
parent
ec19c127
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
pronsole.py
printrun/pronsole.py
+1
-1
pronterface.py
printrun/pronterface.py
+1
-0
No files found.
printrun/pronsole.py
View file @
97988f7e
...
@@ -865,7 +865,7 @@ class pronsole(cmd.Cmd):
...
@@ -865,7 +865,7 @@ class pronsole(cmd.Cmd):
if
not
filename
:
if
not
filename
:
self
.
logError
(
"No file name given."
)
self
.
logError
(
"No file name given."
)
return
return
self
.
log
(
"Loading file: "
+
filename
)
self
.
log
(
_
(
"Loading file:
%
s"
)
%
filename
)
if
not
os
.
path
.
exists
(
filename
):
if
not
os
.
path
.
exists
(
filename
):
self
.
logError
(
"File not found!"
)
self
.
logError
(
"File not found!"
)
return
return
...
...
printrun/pronterface.py
View file @
97988f7e
...
@@ -1341,6 +1341,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
...
@@ -1341,6 +1341,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
def
load_gcode_async
(
self
,
filename
):
def
load_gcode_async
(
self
,
filename
):
self
.
filename
=
filename
self
.
filename
=
filename
gcode
=
self
.
pre_gcode_load
()
gcode
=
self
.
pre_gcode_load
()
self
.
log
(
_
(
"Loading file:
%
s"
)
%
filename
)
threading
.
Thread
(
target
=
self
.
load_gcode_async_thread
,
args
=
(
gcode
,))
.
start
()
threading
.
Thread
(
target
=
self
.
load_gcode_async_thread
,
args
=
(
gcode
,))
.
start
()
def
load_gcode_async_thread
(
self
,
gcode
):
def
load_gcode_async_thread
(
self
,
gcode
):
...
...
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