python - How do I keep the focus on the command prompt when calling pylab.show? -


i calling python script comandline (bash under ubuntu):

> python myscript.py 

within script, create figure, show (nonblocking) pylab , wait user entry:

import matplotlib mpl mpl.use('tkagg') import pylab pl  fig = pylab.figure() # figure gets content here pl.show(block=false) inp = raw_input('please enter choice: ') # prompt window has no focus 

now problem is, figure window, poping up, has focus. want focus stay @ or return command line window interaction raw_input...

any suggestions how achieve this?

thanks in advance!

some other lower level backends tend not it, try:

import matplotlib mpl mpl.use('agg') 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -