开发者

Modify font size when print out to screen

I'm using Win XP and Python 2.5. Is there a way in Pyth开发者_高级运维on to modify font size when print to CMD window?


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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜