changes to banner frame, nav frame and config frames.

only create a banner frame for potato version (since it hold info about submixes).

stick nav_frame eastwards.

change columnspan for bus config frame to 4 to match strip config frames.
This commit is contained in:
onyx-and-iris
2022-04-22 01:27:35 +01:00
parent d3464fc8aa
commit 76ca376bfc
3 changed files with 14 additions and 16 deletions

View File

@@ -8,19 +8,16 @@ class Banner(ttk.Frame):
def __init__(self, parent):
super().__init__()
self._parent = parent
self.web = "onyxandiris.online"
self.submix = tk.StringVar()
if self._parent.kind.name == "Potato":
self.submix.set(self.target.bus[_base_vals.submixes].label)
self.submix.set(self.target.bus[_base_vals.submixes].label)
if self._parent.kind.name == "Potato":
self.label = ttk.Label(
self,
text=f"SUBMIX: {self.submix.get().upper()}",
)
self.label.grid(column=0, row=0, sticky=(tk.N, tk.S, tk.W, tk.E))
self.label = ttk.Label(
self,
text=f"SUBMIX: {self.submix.get().upper()}",
)
self.label.grid(column=0, row=0, sticky=(tk.N, tk.S, tk.W, tk.E))
self.upd_submix()
self.upd_submix()
@property
def target(self):