|
|
|
@ -88,14 +88,13 @@ class Hui(wx.Frame):
|
|
|
|
|
"""
|
|
|
|
|
self.SetTitle("Tinge - {}".format(self.cur_bridge.m_name))
|
|
|
|
|
bridge_btn: wx.Button = wx.Button(self.pnl, label="All Bridges")
|
|
|
|
|
group_label: wx.StaticText = wx.StaticText(self.pnl, label=" ⚯ Groups ⚯ ", style=wx.ALIGN_CENTER)
|
|
|
|
|
unattached_label: wx.StaticText = wx.StaticText(self.pnl, label=" ⚬ Unattached lights ⚬ ", style=wx.ALIGN_CENTER)
|
|
|
|
|
|
|
|
|
|
has_unattached: bool = len(self.cur_bridge.unattached_lights) > 0
|
|
|
|
|
self.sizer.Add(bridge_btn, 0, wx.EXPAND)
|
|
|
|
|
self.Bind(wx.EVT_BUTTON,
|
|
|
|
|
lambda event: self.add_bridges(), bridge_btn)
|
|
|
|
|
if has_unattached:
|
|
|
|
|
group_label: wx.StaticText = wx.StaticText(self.pnl, label=" ⚯ Groups ⚯ ", style=wx.ALIGN_CENTER)
|
|
|
|
|
self.sizer.Add(group_label, 0, wx.EXPAND)
|
|
|
|
|
for group in groups:
|
|
|
|
|
inner_sizer: wx.BoxSizer = wx.BoxSizer(orient=wx.HORIZONTAL)
|
|
|
|
@ -114,6 +113,7 @@ class Hui(wx.Frame):
|
|
|
|
|
lambda event, mgroupid=groupid: self.goto_group(mgroupid), group_btn)
|
|
|
|
|
self.sizer.Add(inner_sizer, 0, wx.EXPAND)
|
|
|
|
|
if has_unattached:
|
|
|
|
|
unattached_label: wx.StaticText = wx.StaticText(self.pnl, label=" ⚬ Unattached lights ⚬ ", style=wx.ALIGN_CENTER)
|
|
|
|
|
self.sizer.Add(unattached_label, 0, wx.EXPAND)
|
|
|
|
|
for light in self.cur_bridge.unattached_lights:
|
|
|
|
|
inner_sizer = wx.BoxSizer(orient=wx.HORIZONTAL)
|
|
|
|
|