Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Font size with print?
Index -> Programming, Python -> Python Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
OREO Speedwagon




PostPosted: Mon Apr 11, 2011 12:11 pm   Post subject: Font size with print?

Hello
my apologies for making so many threads in this forum >.>

I'd like to change the font size that the 'print' command uses - is this possible? I could change it once for every line, or it could be a uniform increase - it just needs to be larger. I've tried to Google for the answer, however all of the results seemed to require attachments for programming for cell phones. The Python documentation, too, doesn't seem to have my answer.

I'm using Python 3.1.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Apr 11, 2011 12:21 pm   Post subject: RE:Font size with print?

doesn't print send text to STDOUT?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
OREO Speedwagon




PostPosted: Mon Apr 11, 2011 12:24 pm   Post subject: Re: Font size with print?

Not entirely sure what you mean by that...? print("Hi") displays the word 'Hi' on a text window, it doesn't literally print it or anything.
Tony




PostPosted: Mon Apr 11, 2011 12:27 pm   Post subject: RE:Font size with print?

Yes, it does. http://docs.python.org/reference/simple_stmts.html#print
Quote:

print evaluates each expression in turn and writes the resulting object to standard output

If the standard output happens to be a terminal, you can configure that to have larger fonts; but that's up to an individual user.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
chrisbrown




PostPosted: Mon Apr 11, 2011 1:39 pm   Post subject: RE:Font size with print?

I think he means print in the ink-and-paper sense.

print doesn't support that kind of thing. If it's absolutely essential (and is it really?), you'll need a graphics/UI library like PyGame or PyGTK.
OREO Speedwagon




PostPosted: Tue Apr 12, 2011 10:41 am   Post subject: Re: Font size with print?

Yes, I meant print like printing with a printer...

but thank you, Tony, I didn't actually know that the Windows Command Prompt could have the font resized... >3>
Display posts from previous:   
   Index -> Programming, Python -> Python Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: