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
21c0b9aa
Commit
21c0b9aa
authored
Sep 16, 2011
by
Travis Howse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only adds filename to list, not full path.
parent
50c2c434
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
plater.py
plater.py
+20
-19
No files found.
plater.py
View file @
21c0b9aa
#!/usr/bin/env python
import
wx
,
time
,
random
,
threading
,
os
,
math
import
stltool
import
re
class
stlwrap
:
def
__init__
(
self
,
obj
,
name
=
None
):
...
...
@@ -131,10 +132,11 @@ class showstl(wx.Window):
t
=
time
.
time
()
#print name
if
name
.
lower
()
.
endswith
(
".stl"
):
newname
=
name
#Filter out the path, just show the STL filename.
newname
=
re
.
match
(
r".*[/\\](.*?\.stl)"
,
name
.
lower
())
.
group
(
1
)
c
=
1
while
newname
in
self
.
models
:
newname
=
name
+
"(
%
d)"
%
c
newname
=
n
ewn
ame
+
"(
%
d)"
%
c
c
+=
1
self
.
models
[
newname
]
=
stltool
.
stl
(
name
)
self
.
models
[
newname
]
.
offsets
=
[
0
,
0
,
0
]
...
...
@@ -300,4 +302,3 @@ if __name__ == '__main__':
main
=
stlwin
()
main
.
Show
()
app
.
MainLoop
()
\ No newline at end of file
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