Skip to content

Commit

Permalink
Add margin to combi DRO
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Nov 22, 2024
1 parent 86cdee2 commit 061b4ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/python/gladevcp/combi_dro.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def __init__(self, joint_number = 0):
self.dtg = 0
self.abs_pos = 0
self.rel_pos = 0
self.margin_left = 20
self.margin_right = 5

self.widgets = {} # will hold all our widgets we need to style

Expand Down Expand Up @@ -170,6 +172,7 @@ def __init__(self, joint_number = 0):
lbl_axisletter.get_style_context().add_class('background')
lbl_axisletter.get_style_context().add_class('labelcolor')
lbl_axisletter.get_style_context().add_class('size_big')
lbl_axisletter.set_margin_left(self.margin_left)
hbox_up.pack_start(lbl_axisletter, False, False, 0)
self.widgets["lbl_axisletter"] = lbl_axisletter

Expand All @@ -194,6 +197,7 @@ def __init__(self, joint_number = 0):
main_dro.get_style_context().add_class('labelcolor')
main_dro.get_style_context().add_class("size_big")
main_dro.set_xalign(1.0)
main_dro.set_margin_right(self.margin_right)
hbox_up.pack_start(main_dro, True, True, 0)
self.widgets["main_dro"] = main_dro

Expand All @@ -206,6 +210,7 @@ def __init__(self, joint_number = 0):
lbl_sys_left.get_style_context().add_class('background')
lbl_sys_left.get_style_context().add_class('labelcolor')
lbl_sys_left.get_style_context().add_class('size_small')
lbl_sys_left.set_margin_left(self.margin_left)
hbox_down.pack_start(lbl_sys_left, True, True, 0)
self.widgets["lbl_sys_left"] = lbl_sys_left

Expand Down Expand Up @@ -233,6 +238,7 @@ def __init__(self, joint_number = 0):
dro_right.get_style_context().add_class('labelcolor')
dro_right.get_style_context().add_class('size_small')
dro_right.set_xalign(1.0)
dro_right.set_margin_right(self.margin_right)
hbox_down.pack_start(dro_right, True, True, 0)
self.widgets["dro_right"] = dro_right

Expand Down

0 comments on commit 061b4ea

Please sign in to comment.