NetBSD Problem Report #58138
From www@netbsd.org Wed Apr 10 23:53:21 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B5F121A9239
for <gnats-bugs@gnats.NetBSD.org>; Wed, 10 Apr 2024 23:53:21 +0000 (UTC)
Message-Id: <20240410235319.F39EB1A923A@mollari.NetBSD.org>
Date: Wed, 10 Apr 2024 23:53:19 +0000 (UTC)
From: lmepequeno@gmail.com
Reply-To: lmepequeno@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Tkinter for macOS can't recognize macOS mouse cursors
X-Send-Pr-Version: www-1.0
>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.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.