Chris Hengge wrote:
> Thanks for the details, I see several code bits I'll have to play with. 
> 
> I got the screen clearing bit no problem, thanks for that one. I'm still
> not used to being able to just use c libraries. 

The ctypes module lets you call functions in shared libraries. It is 
standard in Python 2.5 or available from
http://starship.python.net/crew/theller/ctypes/

> 
> I don't actually have a need to draw the cursor all over the screen for
> any practical application either personal or work, but I've got a bit of
> a fascination with linux terminals being able to draw progress bars or
> "busy" animations and figured I'd have a little fun. :] I came across
> "curses" which looks to be included in activepython so that might be of
> some use for my linux programming. 

Here is a progress bar:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299207

You also might look at urwid though it doesn't seem to run on Windows:
http://excess.org/urwid/

Unfortunately I don't think there is a console library that works on 
both Windows and Linux. For portable (and more functional) UIs you are 
better off learning Tkinter or wxPython.

Kent

> 
> Thanks again. 
> 
> On Thu, 2006-09-07 at 08:44 +0100, Alan Gauld wrote:
>> Replying to the List....
>>
>> The trick is to know either that Fred works at Pythonware,
>> or that his nickname is the effbot... :-)
>>
>> http://effbot.org/downloads/
>>
>> Sorry, neither are intuitively obvious... but he has lots of goodies
>> on his site, worth perusing the list. And Fred's code is usually
>> of a very high standard - ie it just works!
>>
>> Alan Gauld
>> Author of the Learn to Program web site
>> http://www.freenetpages.co.uk/hp/alan.gauld
>>
>> ----- Original Message ----- 
>> From: "Chris Hengge" <[EMAIL PROTECTED]>
>> To: "Alan Gauld" <[EMAIL PROTECTED]>
>> Sent: Thursday, September 07, 2006 5:25 AM
>> Subject: Re: Looking for a few commands
>>
>>
>>> Where is Fred's site? lol... I've been looking for it and not 
>>> finding
>>> anything like this.
>>>
>>>> Finally Fred Lundh has a console library that tries to pull all 
>>>> this
>>>> together into a single platform  independant module, but its not a
>>>> standard library module(yet) and you have to download it from 
>>>> Fred's
>>>> site.
>>>>
>>>> Frankly if I need to do detailed screen manipulation in Python I
>>>> usually
>>>> just bite the bullet and build a GUI - its easier.
>>>>
>>>> HTH,
>>>>
>>>> Alan Gauld
>>>> Author of the Learn to Program web site
>>>> http://www.freenetpages.co.uk/hp/alan.gauld
>>>>
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to