Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75928 > unrolled thread

Re: how to print with given font and size?

Started byChris Angelico <rosuav@gmail.com>
First post2014-08-09 12:50 +1000
Last post2014-08-09 12:50 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to print with given font and size? Chris Angelico <rosuav@gmail.com> - 2014-08-09 12:50 +1000

#75928 — Re: how to print with given font and size?

FromChris Angelico <rosuav@gmail.com>
Date2014-08-09 12:50 +1000
SubjectRe: how to print with given font and size?
Message-ID<mailman.12782.1407552657.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web