how to print with given font and size?
Chris Angelico
rosuav at gmail.com
Fri Aug 8 22:50:52 EDT 2014
On Sun, Aug 10, 2014 at 3:33 AM, luofeiyu <elearn2014 at gmail.com> wrote:
> print("hallo") is so simple.
>
> how can print word "hallo" in console with courier New font 16 pound?
You'd have to look to your console's settings; generally, you can't
change fonts. For that kind of work, what you want is an actual GUI;
there are a number of good Python GUI toolkits, including PyGTK,
Tkinter, wxPython, PyQt, and others. Pick one (Tkinter's probably a
good choice for starting out, as it comes with Python on several
platforms; personally, I quite like GTK; but really, any will do), and
work through its tutorial, which should take you through a basic
graphical Hello, World. But at a regular console, you don't have fonts
- all you have is a stream of text.
ChrisA
More information about the Python-list
mailing list