CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Something wrong with scaling

Open SantaSpeen opened this issue 1 year ago • 2 comments

    def _center(self):
        self.update_idletasks()
        width = self.winfo_width()
        height = self.winfo_height()
        x = (self.winfo_screenwidth() // 2) - (width // 2)
        y = (self.winfo_screenheight() // 2) - (height // 2)
        self.geometry(f"{width}x{height}+{x}+{y}")

I use _center to center the window, however this happens: image without: image

SantaSpeen avatar Nov 26 '24 15:11 SantaSpeen

But if i use:

ctk.deactivate_automatic_dpi_awareness()

image

All is good, window centering normal But image so dirty

SantaSpeen avatar Nov 26 '24 15:11 SantaSpeen

login_box.py: login_box.zip

SantaSpeen avatar Nov 26 '24 15:11 SantaSpeen