Determining Presence Of GUI Support

John Roth johnroth at ameritech.net
Sat Nov 9 20:06:01 EST 2002


"Tim Daneliuk" <tundra at tundraware.com> wrote in message
news:42aiqa.jp82.ln at boundary.tundraware.com...
> Is there a portable method of determining whether the current runtime
> environment supports a GUI or text-based interface?  I would like to
> write a single program which autosenses the presentation environment
> and works accordingly.

Look at the code Anygui uses to determine which graphics library
is installed. www.anygui.org.
It's basically a try/except structure. The package is currently
struggling
to get its 0.2 release out...

John Roth
> --
> ----------------------------------------------------------------------
--------
> Tim Daneliuk
> tundra at tundraware.com


>





More information about the Python-list mailing list