python console

console gui framework

 

npyscreen

built on top of ncurses

 

urwid

Linux, OSX, Cygwin or other unix-like OS

(works even under cygwin under Windows XP/7)

 

curses

(POSIX-only )

 

pdcurses(Public Domain Curses)

# DOS, OS/2, Win32, X11 and SDL

 

Console Module

only available for Windows 95, 98, NT, and 2000. It probably works under Windows XP

 

大部份在 Window 行唔到, 放棄了 ..


 

clear screen display

import os

def cls():
    os.system(cls)
    # now, to clear the screen
cls()

 

console beep

import os
def beep():
    print "\a"
beep()

* Bell_character ("\a")

window:

import Tkinter

Tkinter.Tk().bell()

Linux

apt-get install beep

$ python
>>> os.system("beep -f 555 -l 460")

 

Creative Commons license icon Creative Commons license icon