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
Post a Comment