rdbende / tkcode

Use Chlorophyll instead
https://github.com/rdbende/chlorophyll
MIT License
19 stars 3 forks source link

Copying doesn't work #17

Closed Moosems closed 2 years ago

Moosems commented 2 years ago

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"
rdbende commented 2 years ago

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

Moosems commented 2 years ago

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