rdbende/tkcode

Copying doesn't work

Moosems opened this issue · 2 comments

Using "Command-c" to copy on mac gives the error below:

  File "/Users/joshyacktman/Desktop/DIP-dev/LangEditors.py", line 241, in <module>
    root.mainloop()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py", line 1458, in mainloop
    self.tk.mainloop(n)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tkcode/codebox.py", line 106, in _proxy
    result = self.tk.call(cmd)
_tkinter.TclError: text doesn't contain any characters tagged with "sel"

When there's no selection, you can't copy it.

Yes but you don't get that error with normal Text widgets