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
da0cab63
Commit
da0cab63
authored
May 18, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't limit sentlines queue size
parent
6164e162
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
pronterface.py
pronterface.py
+4
-7
No files found.
pronterface.py
View file @
da0cab63
...
...
@@ -120,7 +120,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self
.
skeinp
=
None
self
.
monitor_interval
=
3
self
.
paused
=
False
self
.
sentlines
=
Queue
.
Queue
(
3
0
)
self
.
sentlines
=
Queue
.
Queue
(
0
)
self
.
cpbuttons
=
[
SpecialButton
(
_
(
"Motors off"
),
(
"M84"
),
(
250
,
250
,
250
),
None
,
0
,
_
(
"Switch all motors off"
)),
SpecialButton
(
_
(
"Check temp"
),
(
"M105"
),
(
225
,
200
,
200
),
(
2
,
5
),
(
1
,
1
),
_
(
"Check current hotend temperature"
)),
...
...
@@ -256,7 +256,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
pass
try
:
self
.
sentlines
.
put_nowait
(
line
)
except
:
except
Queue
.
Full
:
pass
#threading.Thread(target = self.gviz.addgcode, args = (line, 1)).start()
#self.gwindow.p.addgcode(line, hilight = 1)
...
...
@@ -1091,11 +1091,8 @@ class PronterWindow(MainWindow, pronsole.pronsole):
break
time
.
sleep
(
0.25
)
while
not
self
.
sentlines
.
empty
():
try
:
gc
=
self
.
sentlines
.
get_nowait
()
wx
.
CallAfter
(
self
.
gviz
.
addgcode
,
gc
,
1
)
except
:
break
wx
.
CallAfter
(
self
.
status
.
SetStatusText
,
_
(
"Not connected to printer."
))
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