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
6453dbb1
Commit
6453dbb1
authored
Nov 14, 2011
by
Keegi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'kliment/master' into experimental
parents
0e7c70db
9c364565
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
35 deletions
+1
-35
pronterface.py
pronterface.py
+1
-1
test.py
test.py
+0
-34
No files found.
pronterface.py
View file @
6453dbb1
...
@@ -413,7 +413,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -413,7 +413,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
uts
.
Add
(
self
.
rescanbtn
,
wx
.
TOP
|
wx
.
LEFT
,
5
)
uts
.
Add
(
self
.
rescanbtn
,
wx
.
TOP
|
wx
.
LEFT
,
5
)
self
.
serialport
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
self
.
serialport
=
wx
.
ComboBox
(
self
.
panel
,
-
1
,
choices
=
[]
,
choices
=
self
.
scanserial
()
,
style
=
wx
.
CB_DROPDOWN
|
wx
.
CB_READONLY
,
pos
=
(
50
,
0
))
style
=
wx
.
CB_DROPDOWN
|
wx
.
CB_READONLY
,
pos
=
(
50
,
0
))
self
.
rescanports
()
self
.
rescanports
()
uts
.
Add
(
self
.
serialport
)
uts
.
Add
(
self
.
serialport
)
...
...
test.py
deleted
100644 → 0
View file @
0e7c70db
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