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
3273f5cc
Commit
3273f5cc
authored
Jun 29, 2011
by
Keegi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save last file path
parent
0b885578
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
pronterface.py
pronterface.py
+11
-5
No files found.
pronterface.py
View file @
3273f5cc
...
@@ -37,6 +37,7 @@ class Tee(object):
...
@@ -37,6 +37,7 @@ class Tee(object):
class
PronterWindow
(
wx
.
Frame
,
pronsole
.
pronsole
):
class
PronterWindow
(
wx
.
Frame
,
pronsole
.
pronsole
):
def
__init__
(
self
,
filename
=
None
,
size
=
winsize
):
def
__init__
(
self
,
filename
=
None
,
size
=
winsize
):
pronsole
.
pronsole
.
__init__
(
self
)
pronsole
.
pronsole
.
__init__
(
self
)
self
.
settings
.
last_file_path
=
""
self
.
filename
=
filename
self
.
filename
=
filename
os
.
putenv
(
"UBUNTU_MENUPROXY"
,
"0"
)
os
.
putenv
(
"UBUNTU_MENUPROXY"
,
"0"
)
wx
.
Frame
.
__init__
(
self
,
None
,
title
=
"Printer Interface"
,
size
=
size
);
wx
.
Frame
.
__init__
(
self
,
None
,
title
=
"Printer Interface"
,
size
=
size
);
...
@@ -616,7 +617,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -616,7 +617,9 @@ 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
):
basedir
=
"."
basedir
=
self
.
settings
.
last_file_path
if
not
os
.
path
.
exists
(
basedir
):
basedir
=
"."
try
:
try
:
basedir
=
os
.
path
.
split
(
self
.
filename
)[
0
]
basedir
=
os
.
path
.
split
(
self
.
filename
)[
0
]
except
:
except
:
...
@@ -628,6 +631,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -628,6 +631,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
if
not
(
os
.
path
.
exists
(
name
)):
if
not
(
os
.
path
.
exists
(
name
)):
self
.
status
.
SetStatusText
(
"File not found!"
)
self
.
status
.
SetStatusText
(
"File not found!"
)
return
return
path
=
os
.
path
.
split
(
name
)[
0
]
if
path
!=
self
.
settings
.
last_file_path
:
self
.
set
(
"last_file_path"
,
path
)
if
name
.
endswith
(
".stl"
):
if
name
.
endswith
(
".stl"
):
self
.
skein
(
name
)
self
.
skein
(
name
)
else
:
else
:
...
...
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