Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75928
| References | <53E65B7F.9060600@gmail.com> |
|---|---|
| Date | 2014-08-09 12:50 +1000 |
| Subject | Re: how to print with given font and size? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12782.1407552657.18130.python-list@python.org> (permalink) |
On Sun, Aug 10, 2014 at 3:33 AM, luofeiyu <elearn2014@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to print with given font and size? Chris Angelico <rosuav@gmail.com> - 2014-08-09 12:50 +1000
csiph-web