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
4d39b266
Commit
4d39b266
authored
Aug 19, 2012
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #275 from D1plo1d/experimental
Patching the load command so that it works with the pronterface ui
parents
b8f63cd1
ef6ffecf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
pronsole.py
pronsole.py
+4
-1
pronterface.py
pronterface.py
+8
-0
No files found.
pronsole.py
View file @
4d39b266
...
...
@@ -621,6 +621,9 @@ class pronsole(cmd.Cmd):
print
"Disconnects from the printer"
def
do_load
(
self
,
l
):
self
.
_do_load
(
l
)
def
_do_load
(
self
,
l
):
if
len
(
l
)
==
0
:
print
"No file name given."
return
...
...
pronterface.py
View file @
4d39b266
...
...
@@ -173,6 +173,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
self
.
webInterface
=
webinterface
.
WebInterface
(
self
)
self
.
webThread
=
Thread
(
target
=
webinterface
.
StartWebInterfaceThread
,
args
=
(
self
.
webInterface
,
))
self
.
webThread
.
start
()
if
(
self
.
filename
is
not
None
):
self
.
do_load
(
self
.
filename
)
def
startcb
(
self
):
self
.
starttime
=
time
.
time
()
...
...
@@ -1554,6 +1556,12 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
thread
(
target
=
self
.
skein_func
)
.
start
()
thread
(
target
=
self
.
skein_monitor
)
.
start
()
def
do_load
(
self
,
l
):
if
hasattr
(
self
,
'skeining'
):
self
.
loadfile
(
None
,
l
)
else
:
self
.
_do_load
(
l
)
def
loadfile
(
self
,
event
,
filename
=
None
):
if
self
.
skeining
and
self
.
skeinp
is
not
None
:
self
.
skeinp
.
terminate
()
...
...
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