MAN1986 / pyamaze

MIT License
75 stars 82 forks source link

Bug in the zoomed value pass in the tk.state method #9

Open tctomazetti opened 10 months ago

tctomazetti commented 10 months ago

I found this error when I run this code

TclError: bad argument "zoomed": must be normal, iconic, or withdrawn

* My code

```python
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')