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
b7b03e33
Commit
b7b03e33
authored
May 16, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Potential cleanup
parent
ce8c3f3c
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
18 additions
and
18 deletions
+18
-18
gcview.py
printrun/gcview.py
+1
-1
graph.py
printrun/graph.py
+1
-1
gviz.py
printrun/gviz.py
+1
-1
stlview.py
printrun/stlview.py
+1
-1
attributes.py
printrun/svg/attributes.py
+1
-1
__init__.py
printrun/svg/css/__init__.py
+2
-2
atrule.py
printrun/svg/css/atrule.py
+1
-1
colour.py
printrun/svg/css/colour.py
+1
-1
transform.py
printrun/svg/css/transform.py
+1
-1
document.py
printrun/svg/document.py
+3
-3
xybuttons.py
printrun/xybuttons.py
+2
-2
zbuttons.py
printrun/zbuttons.py
+2
-2
zscaper.py
printrun/zscaper.py
+1
-1
No files found.
printrun/gcview.py
View file @
b7b03e33
...
@@ -26,7 +26,7 @@ pyglet.options['shadow_window'] = False
...
@@ -26,7 +26,7 @@ pyglet.options['shadow_window'] = False
pyglet
.
options
[
'debug_gl'
]
=
False
pyglet
.
options
[
'debug_gl'
]
=
False
from
pyglet.gl
import
*
from
pyglet.gl
import
*
from
.
import
stltool
import
stltool
import
threading
import
threading
...
...
printrun/graph.py
View file @
b7b03e33
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
wx
,
random
import
wx
,
random
from
.
bufferedcanvas
import
*
from
bufferedcanvas
import
*
class
Graph
(
BufferedCanvas
):
class
Graph
(
BufferedCanvas
):
'''A class to show a Graph with Pronterface.'''
'''A class to show a Graph with Pronterface.'''
...
...
printrun/gviz.py
View file @
b7b03e33
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
import
wx
,
time
import
wx
,
time
from
printrun
import
gcoder
from
printrun
import
gcoder
from
.
printrun_utils
import
imagefile
from
printrun_utils
import
imagefile
ID_ABOUT
=
101
ID_ABOUT
=
101
ID_EXIT
=
110
ID_EXIT
=
110
...
...
printrun/stlview.py
View file @
b7b03e33
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
os
import
os
import
math
import
math
from
.
import
stltool
import
stltool
import
wx
import
wx
from
wx
import
glcanvas
from
wx
import
glcanvas
import
time
import
time
...
...
printrun/svg/attributes.py
View file @
b7b03e33
...
@@ -21,7 +21,7 @@ from pyparsing import (Literal,
...
@@ -21,7 +21,7 @@ from pyparsing import (Literal,
Optional
,
oneOf
,
Group
,
StringEnd
,
Combine
,
Word
,
alphas
,
hexnums
,
Optional
,
oneOf
,
Group
,
StringEnd
,
Combine
,
Word
,
alphas
,
hexnums
,
CaselessLiteral
,
SkipTo
CaselessLiteral
,
SkipTo
)
)
from
.
css.colour
import
colourValue
from
css.colour
import
colourValue
import
string
import
string
##Paint values
##Paint values
...
...
printrun/svg/css/__init__.py
View file @
b7b03e33
...
@@ -14,5 +14,5 @@
...
@@ -14,5 +14,5 @@
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
from
.
transform
import
transformList
from
transform
import
transformList
from
.
inline
import
inlineStyle
from
inline
import
inlineStyle
printrun/svg/css/atrule.py
View file @
b7b03e33
...
@@ -16,6 +16,6 @@
...
@@ -16,6 +16,6 @@
""" CSS at-rules"""
""" CSS at-rules"""
from
pyparsing
import
Literal
,
Combine
from
pyparsing
import
Literal
,
Combine
from
.
identifier
import
identifier
from
identifier
import
identifier
atkeyword
=
Combine
(
Literal
(
"@"
)
+
identifier
)
atkeyword
=
Combine
(
Literal
(
"@"
)
+
identifier
)
printrun/svg/css/colour.py
View file @
b7b03e33
...
@@ -26,7 +26,7 @@ import wx
...
@@ -26,7 +26,7 @@ import wx
import
string
import
string
import
urllib.parse
import
urllib.parse
from
pyparsing
import
nums
,
Literal
,
Optional
,
oneOf
,
Group
,
StringEnd
,
Combine
,
Word
,
alphas
,
hexnums
from
pyparsing
import
nums
,
Literal
,
Optional
,
oneOf
,
Group
,
StringEnd
,
Combine
,
Word
,
alphas
,
hexnums
from
..
pathdata
import
number
,
sign
from
pathdata
import
number
,
sign
number
=
number
.
copy
()
number
=
number
.
copy
()
integerConstant
=
Word
(
nums
+
"+-"
)
.
setParseAction
(
lambda
t
:
int
(
t
[
0
]))
integerConstant
=
Word
(
nums
+
"+-"
)
.
setParseAction
(
lambda
t
:
int
(
t
[
0
]))
...
...
printrun/svg/css/transform.py
View file @
b7b03e33
...
@@ -22,7 +22,7 @@ from pyparsing import (Literal, Word, CaselessLiteral,
...
@@ -22,7 +22,7 @@ from pyparsing import (Literal, Word, CaselessLiteral,
#some shared definitions from pathdata
#some shared definitions from pathdata
from
..
pathdata
import
number
,
maybeComma
from
pathdata
import
number
,
maybeComma
paren
=
Literal
(
"("
)
.
suppress
()
paren
=
Literal
(
"("
)
.
suppress
()
cparen
=
Literal
(
")"
)
.
suppress
()
cparen
=
Literal
(
")"
)
.
suppress
()
...
...
printrun/svg/document.py
View file @
b7b03e33
...
@@ -23,11 +23,11 @@ import warnings
...
@@ -23,11 +23,11 @@ import warnings
import
math
import
math
from
functools
import
wraps
from
functools
import
wraps
from
.
import
pathdata
import
pathdata
from
.
import
css
import
css
from
svg.css.colour
import
colourValue
from
svg.css.colour
import
colourValue
from
svg.css
import
values
from
svg.css
import
values
from
.
attributes
import
paintValue
from
attributes
import
paintValue
document
=
"""<?xml version = "1.0" standalone = "no"?>
document
=
"""<?xml version = "1.0" standalone = "no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
...
...
printrun/xybuttons.py
View file @
b7b03e33
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
import
wx
,
os
,
math
import
wx
,
os
,
math
from
.
bufferedcanvas
import
*
from
bufferedcanvas
import
*
from
.
printrun_utils
import
*
from
printrun_utils
import
*
def
sign
(
n
):
def
sign
(
n
):
if
n
<
0
:
return
-
1
if
n
<
0
:
return
-
1
...
...
printrun/zbuttons.py
View file @
b7b03e33
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
import
wx
,
os
,
math
import
wx
,
os
,
math
from
.
bufferedcanvas
import
*
from
bufferedcanvas
import
*
from
.
printrun_utils
import
*
from
printrun_utils
import
*
def
sign
(
n
):
def
sign
(
n
):
if
n
<
0
:
return
-
1
if
n
<
0
:
return
-
1
...
...
printrun/zscaper.py
View file @
b7b03e33
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
# along with Printrun. If not, see <http://www.gnu.org/licenses/>.
import
wx
,
math
import
wx
,
math
from
.
stltool
import
*
from
stltool
import
*
a
=
wx
.
App
()
a
=
wx
.
App
()
def
genscape
(
data
=
[[
0
,
1
,
0
,
0
],[
1
,
0
,
2
,
0
],[
1
,
0
,
0
,
0
],[
0
,
1
,
0
,
1
]],
pscale
=
1.0
,
bheight
=
1.0
,
zscale
=
1.0
):
def
genscape
(
data
=
[[
0
,
1
,
0
,
0
],[
1
,
0
,
2
,
0
],[
1
,
0
,
0
,
0
],[
0
,
1
,
0
,
1
]],
pscale
=
1.0
,
bheight
=
1.0
,
zscale
=
1.0
):
...
...
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