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
8af0ab8f
Commit
8af0ab8f
authored
Nov 13, 2011
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #83
parent
2bbb39d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
test.py
test.py
+0
-34
No files found.
test.py
deleted
100644 → 0
View file @
2bbb39d0
import
wx
,
os
,
math
from
bufferedcanvas
import
*
from
xybuttons
import
XYButtons
from
zbuttons
import
ZButtons
class
MyFrame
(
wx
.
Frame
):
def
__init__
(
self
,
parent
,
id
,
title
):
wx
.
Frame
.
__init__
(
self
,
parent
,
id
,
title
,
wx
.
DefaultPosition
,
wx
.
Size
(
600
,
400
))
sizer
=
wx
.
BoxSizer
()
self
.
xy
=
XYButtons
(
self
,
moveCallback
=
self
.
moveXY
)
sizer
.
Add
(
self
.
xy
,
flag
=
wx
.
ALIGN_CENTER
)
self
.
z
=
ZButtons
(
self
,
moveCallback
=
self
.
moveZ
)
sizer
.
Add
(
self
.
z
,
flag
=
wx
.
ALIGN_CENTER
)
self
.
SetSizer
(
sizer
)
self
.
SetBackgroundColour
(
"white"
)
def
moveXY
(
self
,
x
,
y
):
print
"got x"
,
x
,
'y'
,
y
def
moveZ
(
self
,
z
):
print
"got z"
,
z
class
MyApp
(
wx
.
App
):
def
OnInit
(
self
):
frame
=
MyFrame
(
None
,
-
1
,
'test.py'
)
frame
.
Show
(
True
)
frame
.
Centre
()
return
True
app
=
MyApp
(
0
)
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