Why is the Tkinter render quality much worse on windows?

后端 未结 3 1304
小鲜肉
小鲜肉 2021-02-01 20:18

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

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-01 21:06

    Consider the resolution of the MAC as 1366x768 (expected),Suppose you are making your application windows size as 683x384 which is equal to (1366/2 x 768/2).

    When the application will be run on a 4k Display it will display the dimensions as 683x384 for the main window but its dimensions on the 4k will be 4k/2.

    So what you can do it write a general program with variable dimensions of the screens ,So that it will adjust its window size according to the screen size.

    For more details refer to the https://www.tutorialspoint.com/python3/python_gui_programming.htm

    Hope this will help.

提交回复
热议问题