Hmm, no x-server. If you're looking to detect running Python GUI packages,
you could check the namespaces for 'em, but beyond that, I'm stumped.


-----Original Message-----
From: Ken Stevens [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 9 November 2005 1:23 p.m.
To: Liam Clarke-Hutchinson
Subject: Re: [Tutor] Testing for gui


On Wed, Nov 09, 2005 at 01:16:03PM +1300, Liam Clarke-Hutchinson wrote:
> 
> Hi Ken,
> 
> How do you mean? I assume you're referring to a non-Windows 
> environment? In Linux, I'd imagine that using os.popen("ps") would do 
> it.
> 
> Cheers,
> 
> Liam
> 

Yes. Under Linux no x-server running? I guess it really wouldn't be
applicable under a windows enviroment, although I would like my code
to be transportable. Just under a MS windows enviroment it would
always be a "gui" environment.

Thanks, Ken

-- 
Go 'way!  You're bothering me!

A new monthly electronic newsletter covering all aspects of MED's work is now 
available.  Subscribers can choose to receive news from any or all of seven 
categories, free of charge: Growth and Innovation, Strategic Directions, Energy 
and Resources, Business News, ICT, Consumer Issues and Tourism.  See 
http://news.business.govt.nz for more details.




http://www.govt.nz - connecting you to New Zealand central & local government 
services

Any opinions expressed in this message are not necessarily those of the 
Ministry of Economic Development. This message and any files transmitted with 
it are confidential and solely for the use of the intended recipient. If you 
are not the intended recipient or the person responsible for delivery to the 
intended recipient, be advised that you have received this message in error and 
that any use is strictly prohibited. Please contact the sender and delete the 
message and any attachment from your computer.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to