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
df5764c6
Commit
df5764c6
authored
May 04, 2012
by
Jeremy Hammett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make control panel more compact with long translation texts such as Italian
parent
b43093d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
pronterface.py
pronterface.py
+15
-9
No files found.
pronterface.py
View file @
df5764c6
...
@@ -108,7 +108,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -108,7 +108,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
ycol
=
(
180
,
180
,
255
)
ycol
=
(
180
,
180
,
255
)
zcol
=
(
180
,
255
,
180
)
zcol
=
(
180
,
255
,
180
)
self
.
cpbuttons
=
[
self
.
cpbuttons
=
[
[
_
(
"Motors off"
),(
"M84"
),
(
0
,
0
),(
250
,
250
,
250
),(
1
,
2
)
],
[
_
(
"Motors off"
),(
"M84"
),
None
,(
250
,
250
,
250
),
0
],
[
_
(
"Check temp"
),(
"M105"
),(
2
,
5
),(
225
,
200
,
200
),(
1
,
1
)],
[
_
(
"Check temp"
),(
"M105"
),(
2
,
5
),(
225
,
200
,
200
),(
1
,
1
)],
[
_
(
"Extrude"
),(
"extrude"
),(
4
,
0
),(
225
,
200
,
200
),(
1
,
2
)],
[
_
(
"Extrude"
),(
"extrude"
),(
4
,
0
),(
225
,
200
,
200
),(
1
,
2
)],
[
_
(
"Reverse"
),(
"reverse"
),(
5
,
0
),(
225
,
200
,
200
),(
1
,
2
)],
[
_
(
"Reverse"
),(
"reverse"
),(
5
,
0
),(
225
,
200
,
200
),(
1
,
2
)],
...
@@ -567,14 +567,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -567,14 +567,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
#left pane
#left pane
lls
=
self
.
lowerlsizer
=
wx
.
GridBagSizer
()
lls
=
self
.
lowerlsizer
=
wx
.
GridBagSizer
()
llts
=
wx
.
BoxSizer
(
wx
.
HORIZONTAL
)
#lls.Add(wx.StaticText(self.panel,-1,_("mm/min")),pos=(0,4),span=(1,4))
#lls.Add(wx.StaticText(self.panel,-1,_("mm/min")),pos=(0,4),span=(1,4))
self
.
xyfeedc
=
wx
.
SpinCtrl
(
self
.
panel
,
-
1
,
str
(
self
.
settings
.
xy_feedrate
),
min
=
0
,
max
=
50000
,
size
=
(
70
,
-
1
))
lls
.
Add
(
llts
,
pos
=
(
0
,
0
),
span
=
(
1
,
9
))
lls
.
Add
(
wx
.
StaticText
(
self
.
panel
,
-
1
,
_
(
"XY:"
)),
pos
=
(
0
,
2
),
span
=
(
1
,
1
),
flag
=
wx
.
ALIGN_RIGHT
|
wx
.
ALIGN_CENTER_VERTICAL
)
lls
.
Add
(
self
.
xyfeedc
,
pos
=
(
0
,
3
),
span
=
(
1
,
2
))
lls
.
Add
(
wx
.
StaticText
(
self
.
panel
,
-
1
,
_
(
"mm/min Z:"
)),
pos
=
(
0
,
5
),
span
=
(
1
,
1
),
flag
=
wx
.
ALIGN_RIGHT
|
wx
.
ALIGN_CENTER_VERTICAL
)
self
.
zfeedc
=
wx
.
SpinCtrl
(
self
.
panel
,
-
1
,
str
(
self
.
settings
.
z_feedrate
),
min
=
0
,
max
=
50000
,
size
=
(
70
,
-
1
))
lls
.
Add
(
self
.
zfeedc
,
pos
=
(
0
,
6
),
span
=
(
1
,
1
))
#lls.Add((200,375))
#lls.Add((200,375))
szbuttons
=
wx
.
GridBagSizer
()
szbuttons
=
wx
.
GridBagSizer
()
...
@@ -596,8 +591,19 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
...
@@ -596,8 +591,19 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
btn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
procbutton
)
btn
.
Bind
(
wx
.
EVT_BUTTON
,
self
.
procbutton
)
self
.
btndict
[
i
[
1
]]
=
btn
self
.
btndict
[
i
[
1
]]
=
btn
self
.
printerControls
.
append
(
btn
)
self
.
printerControls
.
append
(
btn
)
lls
.
Add
(
btn
,
pos
=
i
[
2
],
span
=
i
[
4
])
if
(
i
[
2
]
==
None
):
if
(
i
[
4
]
==
0
):
llts
.
Add
(
btn
)
else
:
lls
.
Add
(
btn
,
pos
=
i
[
2
],
span
=
i
[
4
])
self
.
xyfeedc
=
wx
.
SpinCtrl
(
self
.
panel
,
-
1
,
str
(
self
.
settings
.
xy_feedrate
),
min
=
0
,
max
=
50000
,
size
=
(
70
,
-
1
))
llts
.
Add
(
wx
.
StaticText
(
self
.
panel
,
-
1
,
_
(
"XY:"
)),
flag
=
wx
.
ALIGN_RIGHT
|
wx
.
ALIGN_CENTER_VERTICAL
)
llts
.
Add
(
self
.
xyfeedc
)
llts
.
Add
(
wx
.
StaticText
(
self
.
panel
,
-
1
,
_
(
"mm/min Z:"
)),
flag
=
wx
.
ALIGN_RIGHT
|
wx
.
ALIGN_CENTER_VERTICAL
)
self
.
zfeedc
=
wx
.
SpinCtrl
(
self
.
panel
,
-
1
,
str
(
self
.
settings
.
z_feedrate
),
min
=
0
,
max
=
50000
,
size
=
(
70
,
-
1
))
llts
.
Add
(
self
.
zfeedc
,)
self
.
monitorbox
=
wx
.
CheckBox
(
self
.
panel
,
-
1
,
_
(
"Watch"
))
self
.
monitorbox
=
wx
.
CheckBox
(
self
.
panel
,
-
1
,
_
(
"Watch"
))
lls
.
Add
(
self
.
monitorbox
,
pos
=
(
2
,
6
))
lls
.
Add
(
self
.
monitorbox
,
pos
=
(
2
,
6
))
self
.
monitorbox
.
Bind
(
wx
.
EVT_CHECKBOX
,
self
.
setmonitor
)
self
.
monitorbox
.
Bind
(
wx
.
EVT_CHECKBOX
,
self
.
setmonitor
)
...
...
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