Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A DEMO To Show How To Expand A Standard Python Terminal.

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Bazza
LXF regular


Joined: Sat Mar 21, 2009 11:16 am
Posts: 1473
Location: Loughborough

PostPosted: Tue Dec 18, 2012 9:03 am    Post subject: A DEMO To Show How To Expand A Standard Python Terminal. Reply with quote

A DEMO To Show How To Expand A Standard Python Terminal On The Fly...

http://code.activestate.com/recipes/578383-a-demo-to-show-how-to-expand-a-standard-python-ter/?in=lang-python

This code shows how to open up a default Terminal running Python to the maximum allowed on the _desktop_. I decided on writing code to do a crude emulation of a Campimeter. Anyone who has worn spectacles for a long time has had this test done at the opticians. Originally written for a Macbook Pro, OSX 10.7.5 but also tested on Debian Linux 6.0.x. READ the code for more information!!! This code WILL alter the size of the Terminal window AND changes the colours too during this session, although it is very easy to return back to the default state, it is NOT included in the code...

Before running Python inside the Terminal ensure the Terminal window is at the uppermost left hand corner of your desktop...

I needed the maximised Python Terminal for something else but this was the easiest way to demonstrate how to do it through Python...

Written so that kids can understand what is going on...

Enjoy finding simple solutions to often very difficult problems... ;o)

(Note, that it has been voted up in less than 24 hours. :o)

Bazza, G0LCU...
_________________
73...

Bazza, G0LCU...

Team AMIGA...
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast