Modify font size when print out to screen

久未见 提交于 2019-12-02 01:56:21
Marfisa

You can use ctypes to access the necessary windows calls to change the font (including the size of the font) of the console. See my answer to another question for a code example.

You should create a desktop link to cmd.exe and set/change the layout properties (e.g. to window size 120*40 or appropriate). Start your program in this console windows (python.exe yourprogram.py).

No, you can't change that, as far as I know. Luckly, nobody on windows uses the console anyway, so I advise you to move to a GUI library instead.

With your own GUI window, you can configure the font and layout as much as you want, include buttons, images, animations, menus, etc...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!