pyamaze
pyamaze copied to clipboard
Bug in the zoomed value pass in the tk.state method
I found this error when I run this code
- Error
def wm_state(self, newstate=None):
"""Query or set the state of this widget as one of normal, icon,
iconic (see wm_iconwindow), withdrawn, or zoomed (Windows only)."""
return self.tk.call('wm', 'state', self._w, newstate)
TclError: bad argument "zoomed": must be normal, iconic, or withdrawn
- My code
from pyamaze import maze
path = maze()
path.CreateMaze()
path.run()
I fix it locally, using the parameter normal
instead of zoomed
in the line 622, as well as:
def _drawMaze(self,theme):
'''
Creation of Tkinter window and maze lines
'''
self._LabWidth=26 # Space from the top for Labels
self._win=Tk()
self._win.state('normal')
self._win.title('PYTHON MAZE WORLD by Learning Orbis')