Checking for X availability
Flavio codeco coelho
fccoelho at gmail.com
Tue Jan 11 06:32:01 EST 2005
I have a program that uses pythondialog for its UI.
Pythondialog is a wrapper of the shell dialog and xdialog libs.
But I would like for it to switch between using Dialog ( when X is not
available ) and xdialog (when X is available)
So my question is: how can I check for the availability of X? i.e.,
How will my program know if its running in a text only console or in
console window over X?
More information about the Python-list