Home Download Buy Blog Forum Support

How to run python scripts with GUI code?

How to run python scripts with GUI code?

Postby queonda on Thu May 05, 2011 4:07 pm

I can execute python scripts that output text to the console; scripts that attempt to start the wxpython gui loop do not run, or do not show the gui. How can I get these to execute?
queonda
 
Posts: 15
Joined: Thu May 05, 2011 4:05 pm

Re: How to run python scripts with GUI code?

Postby ratnushock on Sat May 07, 2011 6:50 pm

Well, maybe it's not a perfect solution, but you could a new Build System and point it to a tiny python script ( subprocess library ) that launches a Terminal / Command Prompt with "python path/to/your/file.py", that should do the trick.

Hope it helps!
ratnushock
 
Posts: 8
Joined: Sun May 01, 2011 10:08 pm

Re: How to run python scripts with GUI code?

Postby queonda on Wed May 11, 2011 3:52 am

Is it possible to reference the current buffer's filepath for this build system??
queonda
 
Posts: 15
Joined: Thu May 05, 2011 4:05 pm

Re: How to run python scripts with GUI code?

Postby FichteFoll on Fri Jun 29, 2012 4:26 pm

(I'm necroposting, but the problem is unresolved and others might experience the same problem.)

Check this: http://ptomato.wordpress.com/2012/02/09 ... me-text-2/

For a list of variables in build systems, check this: http://docs.sublimetext.info/en/latest/ ... -variables
FichteFoll
 
Posts: 388
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 34 guests