import matplotlib
matplotlib.use('qtagg')
import pylab

print 'matplotlib.__version__ :', matplotlib.__version__
pylab.figure()
pylab.plot([1,2,3])

#The following two lines trigger the bug: show() does not enter the event loop.
pylab.figure()
pylab.plot([4,5,6])

pylab.show()
