Skip to content

Commit

Permalink
Bugfix - GUI Don't use group as widget name due to translation issues…
Browse files Browse the repository at this point in the history
… with TCL
  • Loading branch information
torzdf committed Mar 10, 2021
1 parent daac5df commit 6f4e886
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/gui/control_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,9 @@ def get_group_frame(self, group):
is_master = group == "_master"
opts_frame = self.optsframe.subframe
if is_master:
group_frame = ttk.Frame(opts_frame, name=group.lower())
group_frame = ttk.Frame(opts_frame)
else:
group_frame = ttk.LabelFrame(opts_frame,
text="" if is_master else group.title(),
name=group.lower())
group_frame = ttk.LabelFrame(opts_frame, text="" if is_master else group.title())

group_frame.pack(side=tk.TOP, fill=tk.X, padx=5, pady=5, anchor=tk.NW)

Expand Down Expand Up @@ -522,7 +520,7 @@ def _get_subgroup_frame(self, parent, subgroup):
if subgroup is None:
return subgroup
if subgroup not in self._sub_group_frames:
sub_frame = ttk.Frame(parent, name="subgroup_{}".format(subgroup))
sub_frame = ttk.Frame(parent)
self._sub_group_frames[subgroup] = AutoFillContainer(sub_frame,
self.option_columns,
self.option_columns)
Expand Down

0 comments on commit 6f4e886

Please sign in to comment.