pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/58138: Tkinter for macOS can't recognize macOS mouse cursors
>Number: 58138
>Category: pkg
>Synopsis: Tkinter for macOS can't recognize macOS mouse cursors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 10 23:55:00 +0000 2024
>Originator: Luis
>Release: stable
>Organization:
-
>Environment:
Darwin MacBook-Pro-de-Luis.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64
>Description:
trying to use python311 installed via pkgsrc got a Tkinter version that doesnt recognize al cursor shapes available on the platform and included in Tkinter documentation. (https://www.tcl.tk/man/tcl8.4/TkCmd/cursors.htm), none of cursor shapes specific for macos are available, so installed packages throws errors.
>How-To-Repeat:
install python3.11 and Tkinter via pkgsrc. (any version is the same)
create an environment:
/opt/pkg/bin/python3.11 -m venv
.venv/bin/activate
pip3 install customtkinter
run the following snippet from customtkinter site:
import customtkinter
def button_callback():
print("button pressed")
app = customtkinter.CTk()
app.title("my app")
app.geometry("400x150")
button = customtkinter.CTkButton(app, text="my button", command=button_callback)
button.grid(row=0, column=0, padx=20, pady=20)
app.mainloop()
You'll get the following error:
_tkinter.TclError: bad cursor spec "pointinghand"
If you run the example with the system version of python3 installed in macos, you don't get the error.
>Fix:
Not known.
I assume the version of Tkinter is for other platforms and is not customized for macos.
Also, I couldn run Xquartz installed via pkgsrc, so I had to install the Xquartz downloaded from their website.
Also, there is no stub for Tkinter for python 3.12 with pkgsrc.
Home |
Main Index |
Thread Index |
Old Index