04/23 Fixed bugs
This commit is contained in:
@@ -352,8 +352,13 @@ class WebsiteDialog(tk.Toplevel):
|
||||
def _on_visibility_change(self):
|
||||
"""Show or hide the user assignment panel based on visibility selection."""
|
||||
if self.visibility_var.get() == "assigned":
|
||||
# Use before=self._cred_body (not self.creds_container) because
|
||||
# pack's `before` argument requires the reference widget to share
|
||||
# the same parent. _user_assign_frame and _cred_body are both
|
||||
# children of self.inner; creds_container is a child of _cred_body,
|
||||
# so referencing it across that boundary raises a TclError.
|
||||
self._user_assign_frame.pack(fill="x", padx=24, pady=(0, 4),
|
||||
before=self.creds_container)
|
||||
before=self._cred_body)
|
||||
else:
|
||||
self._user_assign_frame.pack_forget()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user