Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App start failed on macOS 11.1 big sur #56

Open
madmadcat opened this issue Dec 23, 2020 · 3 comments
Open

App start failed on macOS 11.1 big sur #56

madmadcat opened this issue Dec 23, 2020 · 3 comments

Comments

@madmadcat
Copy link

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.

@PetePupalaikis
Copy link
Contributor

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.

@adamtec
Copy link

adamtec commented Feb 17, 2021

Hey Pete, I can confirm that if the state parameter is removed, then the app works fine on MacOS.

@PetePupalaikis
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants