Re: Tklib tooltip usage problem with configure

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Tklib tooltip usage problem with configure
De : csaba.nemethi (at) *nospam* t-online.de (nemethi)
Groupes : comp.lang.tcl
Date : 27. Jun 2024, 12:01:27
Autres entêtes
Message-ID : <v5jgq7$27d3k$1@tota-refugium.de>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
Am 27.06.24 um 12:29 schrieb Mark Summerfield:
On Thu, 27 Jun 2024 11:48:38 +0200, nemethi wrote:
 [snip]
Tk 9 uses a different strategy for the scaling-related stuff:  On X11 it
retrieves the display's scaling level (100%, 125%, 150%, ...) from the
system settings, assigns it to the public variable tk::scalingPct, and
passes a value derived from the latter to "tk scaling" (see "man n
tk_scalingPct").  Both $tk::scalingPct and [tk scaling] are used at many
places in the Tk code and library scripts to make the widgets and
standard dialogs scaling-aware.
>
Out of curiosity:  What is your desktop environment
(GNOME/KDE/Cinnamon/MATE/Xfce)?  What is the display's scaling level?
Are you using Xorg or Wayland?.  What are the values $tk::scalingPct and
[tk scaling] immediately after starting wish?
 In my experience *every* Tk app is far too small for me. For example, I
use gitk but fortunately it lets you set all the fonts. For others I am
able to add in the [tk scaling] if statement or simply can't use them.
 I'm using Tcl/Tk 9.0b2 on Linux 6.1 amd64 Debian/Linux 12 (bookworm) with
Xfce 4.18 (GTK 3.24).
 $ wish9
% puts $tk::scalingPct
100
% puts [tk scaling]
1.3333333333333333
 I don't know if I am using Xorg or Wayland. My display is 1920x1200 (16:10
aspect ratio)
Suggestion:  In the "Fonts" tab of the "Appearance" dialog set the font DPI to 120.  This will increase the size of the fonts by a factor of 1.25, for all applications, including the Tk scripts.  After doing this, right after starting wish, $tk::scalingPct will be 125 and [tk scaling] will be 1.66666666666666666666.  Just give it a try!
--
Csaba Nemethi  https://www.nemethi.de  mailto:csaba.nemethi@t-online.de

Date Sujet#  Auteur
26 Jun 24 * Tklib tooltip usage problem with configure8Mark Summerfield
26 Jun 24 +- Re: Tklib tooltip usage problem with configure1Harald Oehlmann
26 Jun 24 `* Re: Tklib tooltip usage problem with configure6nemethi
27 Jun 24  `* Re: Tklib tooltip usage problem with configure5Mark Summerfield
27 Jun 24   `* Re: Tklib tooltip usage problem with configure4nemethi
27 Jun 24    `* Re: Tklib tooltip usage problem with configure3Mark Summerfield
27 Jun 24     `* Re: Tklib tooltip usage problem with configure2nemethi
27 Jun 24      `- Re: Tklib tooltip usage problem with configure1Mark Summerfield

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal