04/23 Fixed bugs

This commit is contained in:
2026-04-23 15:53:29 -04:00
parent eab4207e1f
commit 2ab0408cbe
5 changed files with 123 additions and 15 deletions
+6 -1
View File
@@ -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()