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

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

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

Postby Bazza » Tue Dec 18, 2012 9:03 am

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

http://code.activestate.com/recipes/578 ... ang-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...
User avatar
Bazza
LXF regular
 
Posts: 1476
Joined: Sat Mar 21, 2009 11:16 am
Location: Loughborough

Return to Programming

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron