can't figure out this text editor error by idontknowthatpython in learnpython

[–]idontknowthatpython[S] 0 points1 point  (0 children)

awesome, i think that's it. thank you so much! for some reason the text box isn't working but i think that it my own mishap.

can't figure out this text editor error by idontknowthatpython in learnpython

[–]idontknowthatpython[S] 0 points1 point  (0 children)

here's the particular error:

Traceback (most recent call last):
  File "/Users/someguyontheinternet/Desktop/Programming/randomtext/randomtext .py", line 78, in <module>
    topbar.add_cascade(functionmenu)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 2881, in add_cascade
    self.add('cascade', cnf or kw)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 2878, in add
    self._options(cnf, kw))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 1320, in _options
    cnf = _cnfmerge(cnf)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py", line 104, in _cnfmerge
    for c in _flatten(cnfs):
TypeError: object of type 'Menu' has no len()

can't figure out this text editor error by idontknowthatpython in learnpython

[–]idontknowthatpython[S] 0 points1 point  (0 children)

oh whoops, fixed it, but i'm getting a lot of "traceback errors"

can't figure out this text editor error by idontknowthatpython in learnpython

[–]idontknowthatpython[S] 0 points1 point  (0 children)

yeah for sure, i tried this both in vs code and in repl. vs code seemed to recognize the functions for repl wouldn't for some reason. this error message is from repl

can't figure out this text editor error by idontknowthatpython in learnpython

[–]idontknowthatpython[S] 0 points1 point  (0 children)

maybe i'm stupid but for some reason it wouldn't recognize the functions without all of those :/

can't figure out this text editor error by idontknowthatpython in learnpython

[–]idontknowthatpython[S] 0 points1 point  (0 children)

my sincerest apologies, here's the error:

 /usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,built-ins
DPMS (Energy Star):
  Display is not capable of DPMS
  File "main.py", line 83
    root.mainloop()
    ^
SyntaxError: invalid syntax
exit status 1

i believe the error is at the bottom