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
7657b375
Commit
7657b375
authored
May 17, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand gauges as much as possible
parent
dfa474e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
gui.py
printrun/gui.py
+4
-4
pronterface_widgets.py
printrun/pronterface_widgets.py
+2
-1
No files found.
printrun/gui.py
View file @
7657b375
...
@@ -166,10 +166,10 @@ class LeftPane(wx.GridBagSizer):
...
@@ -166,10 +166,10 @@ class LeftPane(wx.GridBagSizer):
root
.
zfeedc
.
SetForegroundColour
(
"black"
)
root
.
zfeedc
.
SetForegroundColour
(
"black"
)
if
root
.
display_gauges
:
if
root
.
display_gauges
:
root
.
hottgauge
=
TempGauge
(
root
.
panel
,
size
=
(
200
,
24
),
title
=
_
(
"Heater:"
),
maxval
=
300
)
root
.
hottgauge
=
TempGauge
(
root
.
panel
,
size
=
(
-
1
,
24
),
title
=
_
(
"Heater:"
),
maxval
=
300
)
self
.
Add
(
root
.
hottgauge
,
pos
=
(
6
,
0
),
span
=
(
1
,
6
))
self
.
Add
(
root
.
hottgauge
,
pos
=
(
6
,
0
),
span
=
(
1
,
6
)
,
flag
=
wx
.
EXPAND
)
root
.
bedtgauge
=
TempGauge
(
root
.
panel
,
size
=
(
200
,
24
),
title
=
_
(
"Bed:"
),
maxval
=
150
)
root
.
bedtgauge
=
TempGauge
(
root
.
panel
,
size
=
(
-
1
,
24
),
title
=
_
(
"Bed:"
),
maxval
=
150
)
self
.
Add
(
root
.
bedtgauge
,
pos
=
(
7
,
0
),
span
=
(
1
,
6
))
self
.
Add
(
root
.
bedtgauge
,
pos
=
(
7
,
0
),
span
=
(
1
,
6
)
,
flag
=
wx
.
EXPAND
)
def
hotendgauge_scroll_setpoint
(
e
):
def
hotendgauge_scroll_setpoint
(
e
):
rot
=
e
.
GetWheelRotation
()
rot
=
e
.
GetWheelRotation
()
if
rot
>
0
:
if
rot
>
0
:
...
...
printrun/pronterface_widgets.py
View file @
7657b375
...
@@ -236,7 +236,6 @@ class TempGauge(wx.Panel):
...
@@ -236,7 +236,6 @@ class TempGauge(wx.Panel):
def
SetTarget
(
self
,
value
):
def
SetTarget
(
self
,
value
):
self
.
setpoint
=
value
self
.
setpoint
=
value
self
.
recalc
()
wx
.
CallAfter
(
self
.
Refresh
)
wx
.
CallAfter
(
self
.
Refresh
)
def
interpolatedColour
(
self
,
val
,
vmin
,
vmid
,
vmax
,
cmin
,
cmid
,
cmax
):
def
interpolatedColour
(
self
,
val
,
vmin
,
vmid
,
vmax
,
cmin
,
cmid
,
cmax
):
...
@@ -252,6 +251,8 @@ class TempGauge(wx.Panel):
...
@@ -252,6 +251,8 @@ class TempGauge(wx.Panel):
return
wx
.
Colour
(
*
map
(
int
,
rgb
))
return
wx
.
Colour
(
*
map
(
int
,
rgb
))
def
paint
(
self
,
ev
):
def
paint
(
self
,
ev
):
self
.
width
,
self
.
height
=
self
.
GetClientSizeTuple
()
self
.
recalc
()
x0
,
y0
,
x1
,
y1
,
xE
,
yE
=
1
,
1
,
self
.
ypt
+
1
,
1
,
self
.
width
+
1
-
2
,
20
x0
,
y0
,
x1
,
y1
,
xE
,
yE
=
1
,
1
,
self
.
ypt
+
1
,
1
,
self
.
width
+
1
-
2
,
20
dc
=
wx
.
PaintDC
(
self
)
dc
=
wx
.
PaintDC
(
self
)
dc
.
SetBackground
(
wx
.
Brush
((
255
,
255
,
255
)))
dc
.
SetBackground
(
wx
.
Brush
((
255
,
255
,
255
)))
...
...
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