[!] if header > x then x = len(header)

This commit is contained in:
Maxim Khomutov 2025-03-21 17:13:46 +03:00
parent 65e38bf65a
commit 9055de6102

View File

@ -85,6 +85,8 @@ class CTkMessageBox(ctk.CTkToplevel):
_x += 20 # Add 20 pixels for padding on the left and right
_x += 10 # Add 10 pixels for padding on the left and right
_x = max(_x, (len(self.header_map[mode]) * 16) + 25 + 20) # Set width to the length of the title if it's longer than the message
self._text = "\n".join(_text_slt)
_y = 0