• tk scaling

    From Mark@21:1/5 to All on Mon Jun 5 00:40:44 2023
    I recently discovered tk scaling which I find very useful.
    However, the scaling factor I need varies from computer to computer.
    It is possible to set a global scaling factor for a computer (e.g., by storing a value in .Xdefaults or something like that), so that I can just set it once per computer and then rely on that?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to Harald Oehlmann on Mon Jun 5 01:00:03 2023
    On Monday, June 5, 2023 at 8:54:41 AM UTC+1, Harald Oehlmann wrote:
    Am 05.06.2023 um 09:40 schrieb Mark:
    I recently discovered tk scaling which I find very useful.
    However, the scaling factor I need varies from computer to computer.
    It is possible to set a global scaling factor for a computer (e.g., by storing a value in .Xdefaults or something like that), so that I can just set it once per computer and then rely on that?
    Mark,
    you may look to the work of Csaba (and maybe Brian) about initializing
    tk scaling to a senseful value.

    You will find this code:
    - in Tk 8.7 (not released, trunk of fossil)
    - in scrollutil or tablelist packages

    Take care,
    Harald

    That won't help with other people's applications. For example for tkcon I have to manually edit the tkcon file to add tk scaling _factor_. That's why I was hoping for the ability to set a system-wide setting.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Mon Jun 5 09:54:36 2023
    Am 05.06.2023 um 09:40 schrieb Mark:
    I recently discovered tk scaling which I find very useful.
    However, the scaling factor I need varies from computer to computer.
    It is possible to set a global scaling factor for a computer (e.g., by storing a value in .Xdefaults or something like that), so that I can just set it once per computer and then rely on that?

    Mark,
    you may look to the work of Csaba (and maybe Brian) about initializing
    tk scaling to a senseful value.

    You will find this code:
    - in Tk 8.7 (not released, trunk of fossil)
    - in scrollutil or tablelist packages

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to nemethi on Mon Jun 5 04:30:37 2023
    On Monday, June 5, 2023 at 12:20:59 PM UTC+1, nemethi wrote:
    Am 05.06.23 um 10:00 schrieb Mark:
    On Monday, June 5, 2023 at 8:54:41 AM UTC+1, Harald Oehlmann wrote:
    Am 05.06.2023 um 09:40 schrieb Mark:
    I recently discovered tk scaling which I find very useful.
    However, the scaling factor I need varies from computer to computer.
    It is possible to set a global scaling factor for a computer (e.g., by storing a value in .Xdefaults or something like that), so that I can just set it once per computer and then rely on that?
    Mark,
    you may look to the work of Csaba (and maybe Brian) about initializing
    tk scaling to a senseful value.

    You will find this code:
    - in Tk 8.7 (not released, trunk of fossil)
    - in scrollutil or tablelist packages

    Take care,
    Harald

    That won't help with other people's applications. For example for tkcon I have to manually edit the tkcon file to add tk scaling _factor_. That's why I was hoping for the ability to set a system-wide setting.
    Why do you want to change the scaling factor "for tkcon"? Once set, the
    new scaling factor will apply to everything in your GUI, not only to tkcon.

    The Tk engine sets the scaling factor at start time according to the display's physical size (in mm) and its size in pixels. If you see the
    need to change the scaling factor then this is probably because you want
    to have bigger fonts and/or larger widgets. If this is the case then
    you probably have the same problem not only with Tk scripts, but also
    with most other applications, too. This is quite normal if you have a relatively small display with high pixel density.

    The recommended way to solve this (Tk-independent) issue is to increase
    the display's DPI scaling percentage via the system settings. On
    Windows 10+ this is quite easy, and most modern X11 desktops provide
    similar capabilities, too. Once you have done this, your Tk scripts
    will start with a correspondingly adapted scaling factor. On Windows
    this has always been the case, and on X11 it will be the case too in Tk
    8.7. For applications running an earlier Tk versions it is sufficient
    to invoke "package require scrollutil" or "package require tablelist".

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    You're right that I need tkcon to show bigger fonts. Weirdly, after editing tkcon to use `tk scaling 1.5` -- and after which it was big enough -- when I then deleted the tk scaling command I'd added it somehow remembered and still show the right size.
    Presumably it stores this somewhere, but where I don't know.

    But that doesn't help with my own tk apps. I tried adding `package require scrollutil` to a simple `hello gui` app and it had no effect; but `tk scaling 1.5` works. I'm using 8.6 on Debian on one machine and on Ubuntu on another machine.

    Nor do I want to fiddle with my global font settings which work for everything else since if I change them for Tk that'll mess them up for all the other widget toolkits that other apps use.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Mon Jun 5 13:20:54 2023
    Am 05.06.23 um 10:00 schrieb Mark:
    On Monday, June 5, 2023 at 8:54:41 AM UTC+1, Harald Oehlmann wrote:
    Am 05.06.2023 um 09:40 schrieb Mark:
    I recently discovered tk scaling which I find very useful.
    However, the scaling factor I need varies from computer to computer.
    It is possible to set a global scaling factor for a computer (e.g., by storing a value in .Xdefaults or something like that), so that I can just set it once per computer and then rely on that?
    Mark,
    you may look to the work of Csaba (and maybe Brian) about initializing
    tk scaling to a senseful value.

    You will find this code:
    - in Tk 8.7 (not released, trunk of fossil)
    - in scrollutil or tablelist packages

    Take care,
    Harald

    That won't help with other people's applications. For example for tkcon I have to manually edit the tkcon file to add tk scaling _factor_. That's why I was hoping for the ability to set a system-wide setting.

    Why do you want to change the scaling factor "for tkcon"? Once set, the
    new scaling factor will apply to everything in your GUI, not only to tkcon.

    The Tk engine sets the scaling factor at start time according to the
    display's physical size (in mm) and its size in pixels. If you see the
    need to change the scaling factor then this is probably because you want
    to have bigger fonts and/or larger widgets. If this is the case then
    you probably have the same problem not only with Tk scripts, but also
    with most other applications, too. This is quite normal if you have a relatively small display with high pixel density.

    The recommended way to solve this (Tk-independent) issue is to increase
    the display's DPI scaling percentage via the system settings. On
    Windows 10+ this is quite easy, and most modern X11 desktops provide
    similar capabilities, too. Once you have done this, your Tk scripts
    will start with a correspondingly adapted scaling factor. On Windows
    this has always been the case, and on X11 it will be the case too in Tk
    8.7. For applications running an earlier Tk versions it is sufficient
    to invoke "package require scrollutil" or "package require tablelist".

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Mark on Mon Jun 5 13:04:17 2023
    Mark <m.n.summerfield@googlemail.com> wrote:
    But that doesn't help with my own tk apps. I tried adding `package
    require scrollutil` to a simple `hello gui` app and it had no effect;
    but `tk scaling 1.5` works. I'm using 8.6 on Debian on one machine
    and on Ubuntu on another machine.

    Nor do I want to fiddle with my global font settings which work for everything else since if I change them for Tk that'll mess them up
    for all the other widget toolkits that other apps use.

    A very simple loop at the start of your Tk apps can change the font
    size used for all the default Tk fonts (any custom fonts you later
    create would be at whatever size you create them):

    This one keeps the same size value, but switches from 'pixels' to
    'points':

    foreach font [font names] {
    font configure $font [expr {abs([font configure $font -size])}]
    }

    This variant just sets a default size value (use negative values to set
    as "pixels" and positive values to set as "points"):

    foreachfont [font names] {
    font configure $font -size 16
    }

    Usually when someone wants to adjust 'tk scaling' the real underlying
    reason is: "the default fonts are too small". If this is the case
    here, then just adjust the defaults. Obvously in the above you would
    need to adjust the "value" to suit your needs.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Mon Jun 5 14:22:13 2023
    Am 05.06.23 um 13:30 schrieb Mark:
    On Monday, June 5, 2023 at 12:20:59 PM UTC+1, nemethi wrote:
    Am 05.06.23 um 10:00 schrieb Mark:
    On Monday, June 5, 2023 at 8:54:41 AM UTC+1, Harald Oehlmann wrote:
    Am 05.06.2023 um 09:40 schrieb Mark:
    I recently discovered tk scaling which I find very useful.
    However, the scaling factor I need varies from computer to computer. >>>>> It is possible to set a global scaling factor for a computer (e.g., by storing a value in .Xdefaults or something like that), so that I can just set it once per computer and then rely on that?
    Mark,
    you may look to the work of Csaba (and maybe Brian) about initializing >>>> tk scaling to a senseful value.

    You will find this code:
    - in Tk 8.7 (not released, trunk of fossil)
    - in scrollutil or tablelist packages

    Take care,
    Harald

    That won't help with other people's applications. For example for tkcon I have to manually edit the tkcon file to add tk scaling _factor_. That's why I was hoping for the ability to set a system-wide setting.
    Why do you want to change the scaling factor "for tkcon"? Once set, the
    new scaling factor will apply to everything in your GUI, not only to tkcon. >>
    The Tk engine sets the scaling factor at start time according to the
    display's physical size (in mm) and its size in pixels. If you see the
    need to change the scaling factor then this is probably because you want
    to have bigger fonts and/or larger widgets. If this is the case then
    you probably have the same problem not only with Tk scripts, but also
    with most other applications, too. This is quite normal if you have a
    relatively small display with high pixel density.

    The recommended way to solve this (Tk-independent) issue is to increase
    the display's DPI scaling percentage via the system settings. On
    Windows 10+ this is quite easy, and most modern X11 desktops provide
    similar capabilities, too. Once you have done this, your Tk scripts
    will start with a correspondingly adapted scaling factor. On Windows
    this has always been the case, and on X11 it will be the case too in Tk
    8.7. For applications running an earlier Tk versions it is sufficient
    to invoke "package require scrollutil" or "package require tablelist".

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    You're right that I need tkcon to show bigger fonts. Weirdly, after editing tkcon to use `tk scaling 1.5` -- and after which it was big enough -- when I then deleted the tk scaling command I'd added it somehow remembered and still show the right size.
    Presumably it stores this somewhere, but where I don't know.

    But that doesn't help with my own tk apps. I tried adding `package require scrollutil` to a simple `hello gui` app and it had no effect; but `tk scaling 1.5` works. I'm using 8.6 on Debian on one machine and on Ubuntu on another machine.

    Nor do I want to fiddle with my global font settings which work for everything else since if I change them for Tk that'll mess them up for all the other widget toolkits that other apps use.

    Since I have very little working experience with tkcon, I can't tell you
    why it remembers the tk scaling.

    What desktops are you running on Debian and Ubuntu? Have you set the
    DPI scaling level via the system settings *before* starting your Tk script?

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to All on Mon Jun 5 12:02:23 2023
    I'm using Debian with Xfce where tkcon seems to remember the scale (at least within one session; I'll find out tomorrow if it remembers across sessions). And I'm also using Ubuntu with Xfce on another computer where I have to manually add tk scaling to
    tkcon.

    I know how to adjust font sizes and how to use tk scaling _inside_ an app. But the problem is that the scaling needed is different per computer (due to different screen sizes and resolutions).

    For Gtk and KDE apps this can be solved with global settings. And so too for Xfce. But this only seems to work for Gtk- and Qt-based apps. For FLTK-based apps in my .bashrc I have: `export FLTK_SCALING_FACTOR=1.4` on one computer; but don't need it at
    all on the other. But at least it can be done and applies globally to all FLTK apps. So I'm looking for a Tk equivalent. For example, in my .Xdefaults I have `*insertofftime: 0` which stops cursor blink in Tk's non-themed widgets. So really, I'm
    wondering if there's a setting I could use in .Xdefaults to set the default tk scaling per computer.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From saitology9@21:1/5 to Mark on Mon Jun 5 15:29:55 2023
    On 6/5/2023 3:02 PM, Mark wrote:
    I'm using Debian with Xfce where tkcon seems to remember the scale (at least within one session; I'll find out tomorrow if it remembers across sessions). And I'm also using Ubuntu with Xfce on another computer where I have to manually add tk scaling to
    tkcon.

    I know how to adjust font sizes and how to use tk scaling _inside_ an app. But the problem is that the scaling needed is different per computer (due to different screen sizes and resolutions).

    For Gtk and KDE apps this can be solved with global settings. And so too for Xfce. But this only seems to work for Gtk- and Qt-based apps. For FLTK-based apps in my .bashrc I have: `export FLTK_SCALING_FACTOR=1.4` on one computer; but don't need it at
    all on the other. But at least it can be done and applies globally to all FLTK apps. So I'm looking for a Tk equivalent. For example, in my .Xdefaults I have `*insertofftime: 0` which stops cursor blink in Tk's non-themed widgets. So really, I'm
    wondering if there's a setting I could use in .Xdefaults to set the default tk scaling per computer.


    I believe tkcon uses a configuration file whereby you can customize
    certain aspects of your environment. Look for a file named "tkcon.cfg"
    in your home directory or one of its sub-directories. On MS Windows,
    this is located in user folders named like this: "C:/Users/username"

    When I add a "tk scaling" to this file, it affects all the scripts that
    you start from tkcon. So maybe this will do what you want.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Tue Jun 6 10:51:53 2023
    Am 05.06.23 um 21:02 schrieb Mark:
    I'm using Debian with Xfce where tkcon seems to remember the scale (at least within one session; I'll find out tomorrow if it remembers across sessions). And I'm also using Ubuntu with Xfce on another computer where I have to manually add tk scaling to
    tkcon.

    I know how to adjust font sizes and how to use tk scaling _inside_ an app. But the problem is that the scaling needed is different per computer (due to different screen sizes and resolutions).

    For Gtk and KDE apps this can be solved with global settings. And so too for Xfce. But this only seems to work for Gtk- and Qt-based apps. For FLTK-based apps in my .bashrc I have: `export FLTK_SCALING_FACTOR=1.4` on one computer; but don't need it at
    all on the other. But at least it can be done and applies globally to all FLTK apps. So I'm looking for a Tk equivalent. For example, in my .Xdefaults I have `*insertofftime: 0` which stops cursor blink in Tk's non-themed widgets. So really, I'm
    wondering if there's a setting I could use in .Xdefaults to set the default tk scaling per computer.

    So now we know that you are running Xfce on both computers, but you
    haven't answered my second question, namely whether you have set the DPI scaling level via the system settings. Apparently not. On Xfce this is
    not as simple as on GNOME, KDE, or Cinnamon, but possible:

    Method 1: In the 3rd tab of the Appearance dialog set the Custom DPI
    setting to, say, 144. If you then start wish and perform "package
    require scrollutil" then the [tk scaling] will automatically change from 1.333... to 2.0.

    Method 1: In the Display dialog set the Scale to, say, "1.5x", and in
    the last tab of the Appearance dialog select "2x" as the value of the
    Window Scaling. If you then start wish and perform "package require scrollutil" then the [tk scaling] will automatically change from
    1.333... to 2.666...

    It is assumed that you are using the most recent Scrollutil version 1.18.

    It would be helpful if you could proceed as described above and report
    back the results of your tests.

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to nemethi on Tue Jun 6 03:36:03 2023
    On Tuesday, June 6, 2023 at 9:51:57 AM UTC+1, nemethi wrote:
    Am 05.06.23 um 21:02 schrieb Mark:
    I'm using Debian with Xfce where tkcon seems to remember the scale (at least within one session; I'll find out tomorrow if it remembers across sessions). And I'm also using Ubuntu with Xfce on another computer where I have to manually add tk scaling
    to tkcon.

    I know how to adjust font sizes and how to use tk scaling _inside_ an app. But the problem is that the scaling needed is different per computer (due to different screen sizes and resolutions).

    For Gtk and KDE apps this can be solved with global settings. And so too for Xfce. But this only seems to work for Gtk- and Qt-based apps. For FLTK-based apps in my .bashrc I have: `export FLTK_SCALING_FACTOR=1.4` on one computer; but don't need it
    at all on the other. But at least it can be done and applies globally to all FLTK apps. So I'm looking for a Tk equivalent. For example, in my .Xdefaults I have `*insertofftime: 0` which stops cursor blink in Tk's non-themed widgets. So really, I'm
    wondering if there's a setting I could use in .Xdefaults to set the default tk scaling per computer.
    So now we know that you are running Xfce on both computers, but you
    haven't answered my second question, namely whether you have set the DPI scaling level via the system settings. Apparently not. On Xfce this is
    not as simple as on GNOME, KDE, or Cinnamon, but possible:

    Method 1: In the 3rd tab of the Appearance dialog set the Custom DPI
    setting to, say, 144. If you then start wish and perform "package
    require scrollutil" then the [tk scaling] will automatically change from 1.333... to 2.0.

    Method 1: In the Display dialog set the Scale to, say, "1.5x", and in
    the last tab of the Appearance dialog select "2x" as the value of the
    Window Scaling. If you then start wish and perform "package require scrollutil" then the [tk scaling] will automatically change from
    1.333... to 2.666...

    It is assumed that you are using the most recent Scrollutil version 1.18.

    It would be helpful if you could proceed as described above and report
    back the results of your tests.
    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba....@t-online.de

    As I mentioned before I have no wish to set my global appearance settings since this would wreck my settings for everything else. What I need is a Tk applications-specific global setting like FLTK's envvar. FWIW my DPI setting is 96 on a 1920x1200 screen.

    Meanwhile I'll just have to use tk scaling in my own apps and read in a config file so that I can have per-machine scale factors.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to Harald Oehlmann on Tue Jun 6 04:58:33 2023
    On Tuesday, June 6, 2023 at 12:30:10 PM UTC+1, Harald Oehlmann wrote:
    Am 06.06.2023 um 13:17 schrieb Mark:
    Well I realised I can do this myself.
    In my .bashrc I add an export, e.g.: `export TK_SCALING=1.5`
    and then in every Tk app I write I start with this one-liner:

    tk scaling [expr {[info exists env(TK_SCALING)] ? $env(TK_SCALING) : 1}]

    Perhaps not setting it to 1 if TK_SCALING is not present. Just leave it untouched.
    You may also read about .tclrc on the tclsh man page.

    Take care,
    Harald

    Good idea. I'm now using:

    if {[info exists env(TK_SCALING)]} { tk scaling $env(TK_SCALING) }

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Tue Jun 6 13:30:06 2023
    Am 06.06.2023 um 13:17 schrieb Mark:
    Well I realised I can do this myself.
    In my .bashrc I add an export, e.g.: `export TK_SCALING=1.5`
    and then in every Tk app I write I start with this one-liner:

    tk scaling [expr {[info exists env(TK_SCALING)] ? $env(TK_SCALING) : 1}]

    Perhaps not setting it to 1 if TK_SCALING is not present. Just leave it untouched.
    You may also read about .tclrc on the tclsh man page.

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to All on Tue Jun 6 04:17:16 2023
    Well I realised I can do this myself.
    In my .bashrc I add an export, e.g.: `export TK_SCALING=1.5`
    and then in every Tk app I write I start with this one-liner:

    tk scaling [expr {[info exists env(TK_SCALING)] ? $env(TK_SCALING) : 1}]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to Mark on Tue Jun 6 08:11:48 2023
    On Tuesday, June 6, 2023 at 12:58:35 PM UTC+1, Mark wrote:
    On Tuesday, June 6, 2023 at 12:30:10 PM UTC+1, Harald Oehlmann wrote:
    Am 06.06.2023 um 13:17 schrieb Mark:
    Well I realised I can do this myself.
    In my .bashrc I add an export, e.g.: `export TK_SCALING=1.5`
    and then in every Tk app I write I start with this one-liner:

    tk scaling [expr {[info exists env(TK_SCALING)] ? $env(TK_SCALING) : 1}]

    Perhaps not setting it to 1 if TK_SCALING is not present. Just leave it untouched.
    You may also read about .tclrc on the tclsh man page.

    Take care,
    Harald
    Good idea. I'm now using:

    if {[info exists env(TK_SCALING)]} { tk scaling $env(TK_SCALING) }

    Incidentally, I can't find any docs for tclrc or .tclrc.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Tue Jun 6 17:27:56 2023
    Am 06.06.2023 um 17:11 schrieb Mark:
    On Tuesday, June 6, 2023 at 12:58:35 PM UTC+1, Mark wrote:
    On Tuesday, June 6, 2023 at 12:30:10 PM UTC+1, Harald Oehlmann wrote:
    Am 06.06.2023 um 13:17 schrieb Mark:
    Well I realised I can do this myself.
    In my .bashrc I add an export, e.g.: `export TK_SCALING=1.5`
    and then in every Tk app I write I start with this one-liner:

    tk scaling [expr {[info exists env(TK_SCALING)] ? $env(TK_SCALING) : 1}] >>>>
    Perhaps not setting it to 1 if TK_SCALING is not present. Just leave it
    untouched.
    You may also read about .tclrc on the tclsh man page.

    Take care,
    Harald
    Good idea. I'm now using:

    if {[info exists env(TK_SCALING)]} { tk scaling $env(TK_SCALING) }

    Incidentally, I can't find any docs for tclrc or .tclrc.

    I thopught, a "man tclsh" will bring this up:

    https://www.tcl.tk/man/tcl8.6/UserCmd/tclsh.html

    But it is for interactive only anyway.

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Tue Jun 6 18:32:24 2023
    Am 06.06.23 um 13:58 schrieb Mark:
    On Tuesday, June 6, 2023 at 12:30:10 PM UTC+1, Harald Oehlmann wrote:
    Am 06.06.2023 um 13:17 schrieb Mark:
    Well I realised I can do this myself.
    In my .bashrc I add an export, e.g.: `export TK_SCALING=1.5`
    and then in every Tk app I write I start with this one-liner:

    tk scaling [expr {[info exists env(TK_SCALING)] ? $env(TK_SCALING) : 1}] >>>
    Perhaps not setting it to 1 if TK_SCALING is not present. Just leave it
    untouched.
    You may also read about .tclrc on the tclsh man page.

    Take care,
    Harald

    Good idea. I'm now using:

    if {[info exists env(TK_SCALING)]} { tk scaling $env(TK_SCALING) }

    Originally you asked whether it is possible to use the .Xdefaults file
    for specifying the scaling factor. Well, this is possible: Just insert
    the line

    *tkScaling: 1.5

    or

    *TkScaling: 1.5

    into your .Xdefaults or .Xresources file and start your Tk scripts with

    if {[set scaling [option get . tkScaling TkScaling]] ne ""} {
    catch {tk scaling $scaling}
    }

    The catch guards against a bad scaling value.

    --
    Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)