When we run a python script(test.py):
import matplotlib.pyplot as plt
import pylab
import win32com.client as win32
import os
mng = pylab.get_current_fig_manager()
mng.window.showMaximized()
It will show the following error message:
Traceback (most recent call last):
File "C:\test.py", line 6, in <module>
mng.window.showMaximized()
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1826, in __getattr__
return getattr(self.tk, attr)
AttributeError: showMaximized
Our operation system is Windows 7. We have installed "matplotlib‑1.3.1.win32‑py2.7.exe", and the corresponding numpy, dateutil, pytz, pyparsing, six and win32com.client.
We couldn't find any solution after the search. Could any guru kindly offer some comments/solutions? Thanks.