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
51f59b06
Commit
51f59b06
authored
Jul 04, 2011
by
kliment
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash on new gcode file load if no previous file was loaded
parent
72c68030
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
gviz.py
gviz.py
+4
-1
pronterface.py
pronterface.py
+1
-1
No files found.
gviz.py
View file @
51f59b06
...
@@ -61,8 +61,10 @@ class gviz(wx.Panel):
...
@@ -61,8 +61,10 @@ class gviz(wx.Panel):
self
.
layerindex
=
0
self
.
layerindex
=
0
self
.
showall
=
0
self
.
showall
=
0
self
.
dirty
=
1
self
.
dirty
=
1
self
.
blitmap
=
wx
.
EmptyBitmap
(
self
.
GetClientSize
()[
0
],
self
.
GetClientSize
()[
1
],
-
1
)
self
.
repaint
()
self
.
repaint
()
def
layerup
(
self
):
def
layerup
(
self
):
if
(
self
.
layerindex
+
1
<
len
(
self
.
layers
)):
if
(
self
.
layerindex
+
1
<
len
(
self
.
layers
)):
self
.
layerindex
+=
1
self
.
layerindex
+=
1
...
@@ -173,7 +175,8 @@ class gviz(wx.Panel):
...
@@ -173,7 +175,8 @@ class gviz(wx.Panel):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
app
=
wx
.
App
(
False
)
app
=
wx
.
App
(
False
)
main
=
window
(
open
(
"/home/kliment/designs/spinner/gearend_export.gcode"
))
#main = window(open("/home/kliment/designs/spinner/gearend_export.gcode"))
main
=
window
(
open
(
"jam.gcode"
))
main
.
Show
()
main
.
Show
()
app
.
MainLoop
()
app
.
MainLoop
()
pronterface.py
View file @
51f59b06
...
@@ -642,7 +642,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -642,7 +642,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
return
return
path
=
os
.
path
.
split
(
name
)[
0
]
path
=
os
.
path
.
split
(
name
)[
0
]
if
path
!=
self
.
settings
.
last_file_path
:
if
path
!=
self
.
settings
.
last_file_path
:
self
.
set
(
"last_file_path"
,
path
)
self
.
set
(
"last_file_path"
,
path
)
if
name
.
lower
()
.
endswith
(
".stl"
):
if
name
.
lower
()
.
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