Python-OS icon indicating copy to clipboard operation
Python-OS copied to clipboard

Error

Open judemont opened this issue 2 years ago • 2 comments

When I run OS.py I have this error :

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.11/tkinter/__init__.py", line 1948, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/tkinter/__init__.py", line 861, in callit
    func(*args)
  File "/home/judemont/autre/Python-OS/System/shell/Boot/Desktop/Desktop.py", line 51, in __init__
    Desktop.desktop_initializer(self)
  File "/home/judemont/autre/Python-OS/System/shell/Boot/Desktop/Desktop.py", line 73, in desktop_initializer
    self.master.configure(background = "#001023",cursor = XCursor_2)
  File "/usr/lib/python3.11/tkinter/__init__.py", line 1702, in configure
    return self._configure('configure', cnf, kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/tkinter/__init__.py", line 1692, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: bad cursor spec "@Assets/Cursors/Linux/XCursor-2.xbm"

judemont avatar Mar 22 '23 19:03 judemont

make sure you have downloaded the intire project as a zip and the unzipped it

sunny-dee-71 avatar Feb 25 '25 13:02 sunny-dee-71

Tkinter tries to set a custom mouse cursor based on a bitmap (XBM), and fails. I think the desktop environment doesn't play well with tkinter

TheBigEye avatar Feb 25 '25 18:02 TheBigEye