Python Forum
[Tkinter] Ignore windows scaling in tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Ignore windows scaling in tkinter
#1
Hello :)

I am French, sorry for my low level in english :)

I want to ignore the Windows 10's scaling for my tkinter window.

We can set the scale with a right click on the desktop, then Display Settings :

https://zupimages.net/up/18/30/onay.png

So i set the scale to 125% because i have a large screen, i need to magnify my texts, pictures...

Indeed, the Windows scaling magnifies my pictures in tkinter's Canvas and cause troubles.

So i want to ignore the windows 10's scale. Is it possible ?

Thank you :)
Reply
#2
One of the most difficult things to get right on tkinter is scaling, and geometry in general.
It's one of the main reasons why I only use it for trivial applications any longer.

If you are at a stage where you could switch GUI packages, I'd strongly suggest using wxpython (phoenix for python 3) or
Qt5. I prefer wxpython because it's totally open source, but Qt is excellent, has a community (free) edition and great python interfaces, so it can't be discounted.
Reply
#3
Yes, it is right... it's hard to get a window exactly as we want...
Okay, I will watch them, thank you !
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter two windows instead of one jacksfrustration 7 894 Feb-08-2024, 06:18 PM
Last Post: deanhystad
  pass a variable between tkinter and toplevel windows janeik 10 2,374 Jan-24-2024, 06:44 AM
Last Post: Liliana
  Tkinter multiple windows in the same window tomro91 1 866 Oct-30-2023, 02:59 PM
Last Post: Larz60+
  [Tkinter] scaling DPaul 7 3,459 Jun-24-2022, 02:22 PM
Last Post: DPaul
  Scaling text QLabel following display mode windows '100%, 125% ...) VIGNEAUD 2 2,273 Jul-07-2021, 06:38 PM
Last Post: deanhystad
  Dual Tkinter windows and shells Astrikor 6 3,957 Sep-03-2020, 10:09 PM
Last Post: Astrikor
  Tkinter scaling windows conten to or with its size not working Detzi 5 4,495 Jan-12-2020, 12:42 PM
Last Post: Detzi
  How to close one of the windows in Tkinter scratchmyhead 3 4,822 Dec-21-2019, 06:48 PM
Last Post: pashaliski
  Using tkinter on Windows to launch python 3 scripts Mocap 1 2,744 Jul-17-2019, 05:16 AM
Last Post: Yoriz
  [Tkinter] Using tkinter and mutiprocess ok on windows, locks up on ubuntu? ice 3 2,693 May-29-2019, 08:44 AM
Last Post: ice

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020