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
7a8819e4
Commit
7a8819e4
authored
Jun 09, 2011
by
kliment
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pronterface: remember dir across opened files
parent
b513383d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
printcore.py
printcore.py
+1
-1
pronsole.py
pronsole.py
+1
-1
pronterface.py
pronterface.py
+1
-1
No files found.
printcore.py
View file @
7a8819e4
#!/usr/bin/python
#!/usr/bin/
env
python
from
serial
import
Serial
from
serial
import
Serial
from
threading
import
Thread
from
threading
import
Thread
import
time
import
time
...
...
pronsole.py
View file @
7a8819e4
#!/usr/bin/env python
import
cmd
,
printcore
,
sys
import
cmd
,
printcore
,
sys
#help(cmd)
import
glob
,
os
,
time
import
glob
,
os
,
time
if
os
.
name
==
"nt"
:
if
os
.
name
==
"nt"
:
try
:
try
:
...
...
pronterface.py
View file @
7a8819e4
...
@@ -437,7 +437,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -437,7 +437,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
thread
(
target
=
self
.
skein_monitor
)
.
start
()
thread
(
target
=
self
.
skein_monitor
)
.
start
()
def
loadfile
(
self
,
event
):
def
loadfile
(
self
,
event
):
dlg
=
wx
.
FileDialog
(
self
,
"Open file to print"
)
dlg
=
wx
.
FileDialog
(
self
,
"Open file to print"
,
style
=
wx
.
FD_OPEN
|
wx
.
FD_FILE_MUST_EXIST
|
wx
.
FD_CHANGE_DIR
)
dlg
.
SetWildcard
(
"STL and GCODE files (;*.gcode;*.g;*.stl;)"
)
dlg
.
SetWildcard
(
"STL and GCODE files (;*.gcode;*.g;*.stl;)"
)
if
(
dlg
.
ShowModal
()
==
wx
.
ID_OK
):
if
(
dlg
.
ShowModal
()
==
wx
.
ID_OK
):
name
=
dlg
.
GetPath
()
name
=
dlg
.
GetPath
()
...
...
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