Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

508
Visualizações
Why is the Tkinter render quality much worse on windows?

I have developed a python app with Tkinter on a Mac. It involves forms, and canvas drawings. On the Mac, it looks great. However on my Dell laptop (4K display, and more powerful than my Mac), the Tkinter ui appears very pixelated and certain elements are located slightly differently. What is this problem known as and what can I do to render Tkinter better on Dell Windows 10 or other platforms in general? Here is a screen shot of the same part of the UI (showing form and canvas drawing)...

Windows(bad) enter image description here

Mac(normal)

enter image description here

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Antialiasing is only enabled for Tkinter canvas object in OSX . You can get the aggDraw lib: http://effbot.org/zone/tkinter-aggdraw.htm as a workaround, but otherwise you will get jagged lines when trying to draw on a canvas. Fonts however should be anti-aliased on all major platforms.

over 4 years ago · Santiago Trujillo Relatório

0

enter image description here

The differences in the display of the same application are due to differences in render engines used by each Operating system.

This is coverd in a Pakt pub ebook called Tkinter GUI Application Development Blueprints

passage regarding this topic available here.

It may be a pain to do but it looks like the most common fix for this is to detect your enviroment and write independent styles using the external option database more info is available in the documentation here.

over 4 years ago · Santiago Trujillo Relatório

0

Setting your DPI awareness to 1 should resolve your issue

from ctypes import windll
windll.shcore.SetProcessDpiAwareness(1)
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda