[Tutor] Testing for gui
Ken Stevens
kens7601 at gmail.com
Thu Nov 10 00:27:24 CET 2005
On Wed, Nov 09, 2005 at 10:00:49PM -0000, Alan Gauld wrote:
> >How does one test for a running gui in python?
> >
>
> Can you be more specific? A GUI is a feature of a program.
> The GUI is part of the program - although a few programs
> can run in either GUI or Text mode, but they are the exception.
>
> Can you give an example of what you want to test for?
>
> Alan G
I haven't written any code yet, but I was thinking I would like to
test for either a windows environment (Is an X-Server running) or is
this a strictly console (no X-server) environment and then do the
appropriate thing for each environment. I am not sure that is any
clearer, but I hope it is.
Ken
--
Money is its own reward.
More information about the Tutor
mailing list