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
126720a5
Commit
126720a5
authored
Jun 04, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle Queue.Empty exceptions in statuschecker (#390)
parent
02a34666
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
pronterface.py
pronterface.py
+7
-3
No files found.
pronterface.py
View file @
126720a5
...
@@ -1241,9 +1241,13 @@ class PronterWindow(MainWindow, pronsole.pronsole):
...
@@ -1241,9 +1241,13 @@ class PronterWindow(MainWindow, pronsole.pronsole):
if
not
self
.
statuscheck
:
if
not
self
.
statuscheck
:
break
break
time
.
sleep
(
0.25
)
time
.
sleep
(
0.25
)
try
:
while
not
self
.
sentlines
.
empty
():
while
not
self
.
sentlines
.
empty
():
gc
=
self
.
sentlines
.
get_nowait
()
gc
=
self
.
sentlines
.
get_nowait
()
wx
.
CallAfter
(
self
.
gviz
.
addgcode
,
gc
,
1
)
wx
.
CallAfter
(
self
.
gviz
.
addgcode
,
gc
,
1
)
self
.
sentlines
.
task_done
()
except
Queue
.
Empty
:
pass
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
_
(
"Not connected to printer."
))
wx
.
CallAfter
(
self
.
statusbar
.
SetStatusText
,
_
(
"Not connected to printer."
))
def
capture
(
self
,
func
,
*
args
,
**
kwargs
):
def
capture
(
self
,
func
,
*
args
,
**
kwargs
):
...
...
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