0

I have been using an edited version of the graphics.py library by John Zelle which is based upon TKinter for some time now, but this question always confused me:

Why is the resolution of the screen (the pixels/unit) of the TKinter screen lower than my computer's?

Now what I mean by this is, if I draw a point on window like so: enter image description here

the pixel is VERY clearly visible. However, I know for a fact that my computer can display higher resolutions (obviously). When I use a vector graphic editing software, I can't make out individual points on the window - so why can I over here. How much ever I have tried increasing the resolution of the window, the pixel size remains the same.

The size is very different to if I used vector graphics - If I had a curve, I would see a curve, not some anti-aliased pixels. So why is this? Why can't I draw smaller pixels on a TKinter screen?

The same thing happens with PNG Images - Why can't I export in a higher resolution so that I don't see any of the anti-aliasing (yes the size would increase, but why isn't the option available), why is this a limitation when I can clearly see that it is not when I am using vector graphics?

Vector graphics can be zoomed in infinitely, but that is not my point. My question is if my computer's screen is capable of displaying far higher resolutions than what I can in TKinter, why can't I display them?

Bhavye Mathur
  • 1,024
  • 1
  • 7
  • 25
  • https://stackoverflow.com/questions/34132203/scaling-of-tkinter-gui-in-4k-38402160-resolution is a good place to start. Do remember what year Tk was designed in; 1/72nd of an inch was *far* more than it seemed like anyone would ever need for an on-screen display in 1991. – Charles Duffy Apr 24 '20 at 18:01
  • How are you drawing that point on the window? When I draw a single pixel, it appears literally as a single pixel. – Bryan Oakley Apr 24 '20 at 18:35

0 Answers0