App start failed on macOS 11.1 big sur
It works on Windows but my macOS.
heres are error messages
File "/Users/doyouhike/project/WANDTEC/Tools/SignalIntegrity-master/SignalIntegrity/App/SignalIntegrityApp.py", line 1097, in main
SignalIntegrityApp(projectFileName,external=external)
File "/Users/doyouhike/project/WANDTEC/Tools/SignalIntegrity-master/SignalIntegrity/App/SignalIntegrityApp.py", line 326, in __init__
self.UpdateRecentProjectsMenu()
File "/Users/doyouhike/project/WANDTEC/Tools/SignalIntegrity-master/SignalIntegrity/App/SignalIntegrityApp.py", line 453, in UpdateRecentProjectsMenu
self.FileMenu.entryconfigure(1,state='disabled')
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 2933, in entryconfigure
return self._configure(('entryconfigure', index), cnf, kw)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 1476, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: unknown option "-state"
And I've tried to comment line 452 to line 455 in SingalIntegrityApp.py
if all(r is None for r in recentFileList):
self.FileMenu.entryconfigure(1,state='disabled')
else:
self.FileMenu.entryconfigure(1,state='normal')
the App start normally.
Interesting. My understanding is that tkinter does not work properly on macOS. It would be good to know if, after commenting out those lines, whether the whole application runs on the mac.
Hey Pete, I can confirm that if the state parameter is removed, then the app works fine on MacOS.
Interesting. is it just this one place? or are there others? If you can identify all of the places, I'd be happy to make the change (maybe just wrap it in a try-catch, or do an os test prior to such lines.
Pete