Skip to content

Commit 32ac15d

Browse files
authored
Merge pull request #37 from gregkopp/feature/gk-jogbar
Feature: Jog bar servo control
2 parents ce1d678 + 6aa15a4 commit 32ac15d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

rcp/components/home/jogbar.kv

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
orientation: "horizontal"
66
size_hint_y: None
77
height: 128
8+
Button:
9+
width: 96
10+
size_hint_x: None
11+
text: app.servo.name
12+
font_size: self.height / 1.5
13+
font_style: "bold"
14+
background_color: [0.2, 1, 0.2, 1] if app.servo.servoEnable else [0.3, 0.3, 0.3, 1]
15+
on_release: app.servo.toggle_enable()
16+
disabled: root.enable_jog
817

918
BoxLayout:
1019
size_hint_x: 0.3
@@ -96,4 +105,5 @@
96105
font_style: "bold"
97106
halign: "center"
98107
background_color: app.formats.cancel_color if root.enable_jog else app.formats.accept_color
108+
disabled: not app.servo.servoEnable
99109
on_release: root.enable_jog = not root.enable_jog

0 commit comments

Comments
 (0)