• A few notes on porting Tcl/Tk 8.6 =?UTF-8?B?4oaS?= 9

    From Mark Summerfield@m.n.summerfield@gmail.com to comp.lang.tcl on Tue Jun 10 08:10:45 2025
    From Newsgroup: comp.lang.tcl

    I have been porting a small GUI game ~1400LOC from Tcl/Tk 8.6 → 9.

    **Changes for 8.6 → 9**

    I used ~ for $HOME a few times in one function, so had to change that.

    When drawing canvas polygons I found I was getting a 1 pixel black outline
    that is _not_ present in the 8.6 version. So it appears that the default for outline has changed. I easily fixed this by adding `-outline ""` but didn't spot this in the Tk 9 release notes.

    The biggest amount of work was with the namespace change. So I had to change
    a lot of `board::...` to `::board::...` and similar. This was tedious but
    not difficult.

    **Changes since I was changing things**

    I switched from sourcing Tcl files to using `.tm` modules; much nicer.

    I switched from PNG images to SVG; again, much nicer.

    **Scaling**

    For scaling I use this line:

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

    and have an environment variable `TK_SCALING` which I set to different
    values on my desktop and laptop.

    However this doesn't work when I put a Tcl/Tk app in a taskbar launcher so
    I'm going to add scaling as a config option too.

    See Tcl/Tk 8.6: https://github.com/mark-summerfield/gravitate-tcl
    and Tcl/Tk 9: https://github.com/mark-summerfield/gravitate-tcl9

    PS My ISP has now stopped supporting newsgroup access.
    And a few years ago Google stopped supporting them.
    I really wish there was a general Tcl/Tk mailing list that could
    be used.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Tue Jun 10 10:37:56 2025
    From Newsgroup: comp.lang.tcl

    Am 10.06.2025 um 10:10 schrieb Mark Summerfield:
    I have been porting a small GUI game ~1400LOC from Tcl/Tk 8.6 → 9.

    **Changes for 8.6 → 9**

    I used ~ for $HOME a few times in one function, so had to change that.

    When drawing canvas polygons I found I was getting a 1 pixel black outline that is _not_ present in the 8.6 version. So it appears that the default for outline has changed. I easily fixed this by adding `-outline ""` but didn't spot this in the Tk 9 release notes.

    The biggest amount of work was with the namespace change. So I had to change a lot of `board::...` to `::board::...` and similar. This was tedious but
    not difficult.

    **Changes since I was changing things**

    I switched from sourcing Tcl files to using `.tm` modules; much nicer.

    I switched from PNG images to SVG; again, much nicer.

    **Scaling**

    For scaling I use this line:

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

    and have an environment variable `TK_SCALING` which I set to different
    values on my desktop and laptop.

    However this doesn't work when I put a Tcl/Tk app in a taskbar launcher so I'm going to add scaling as a config option too.

    See Tcl/Tk 8.6: https://github.com/mark-summerfield/gravitate-tcl
    and Tcl/Tk 9: https://github.com/mark-summerfield/gravitate-tcl9

    PS My ISP has now stopped supporting newsgroup access.
    And a few years ago Google stopped supporting them.
    I really wish there was a general Tcl/Tk mailing list that could
    be used.


    Mark,
    thanks for you effort.
    The porting wiki pages are:

    https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9&p https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&p

    The -outline is not mentioned there. I suppose, this is a bug.
    May you file a report?
    If it is not a bug, it would be great to add it to the wiki page.

    Thanks for all,
    Harald


    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mark Summerfield@m.n.summerfield@gmail.com to comp.lang.tcl on Tue Jun 10 09:18:00 2025
    From Newsgroup: comp.lang.tcl

    I tried adding this to the wiki page:

    ```
    ## Canvas outline default has changed

    When creating a canvas polygon in Tk 8.6 no outline is drawn by default.
    For Tk 9 the default is to draw a 1 pixel black line. To get the old
    behavior, create with the option `-outline ""`.
    ```

    Incidentally, is it possible to change email address on core.tcl-lang.org?
    When I click my username it offers options to change site skin, manage
    cookies and change password, but not to change email.

    On Tue, 10 Jun 2025 10:37:56 +0200, Harald Oehlmann wrote:
    Am 10.06.2025 um 10:10 schrieb Mark Summerfield:
    I have been porting a small GUI game ~1400LOC from Tcl/Tk 8.6 → 9.
    [snip]

    PS My ISP has now stopped supporting newsgroup access.
    And a few years ago Google stopped supporting them.
    I really wish there was a general Tcl/Tk mailing list that could be
    used.


    Mark,
    thanks for you effort.
    The porting wiki pages are:

    https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9&p https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&p

    The -outline is not mentioned there. I suppose, this is a bug.
    May you file a report?
    If it is not a bug, it would be great to add it to the wiki page.

    Thanks for all,
    Harald

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Tue Jun 10 12:53:51 2025
    From Newsgroup: comp.lang.tcl

    Marc,
    great that you want to add this on the wiki.
    Are you sure, this is intended and not a bug?
    I would prefer to open a ticket.

    Fossil does not save any E-Mail addresses, except for alerts (tickets
    and modifications).
    The E-Mail for those may be set.

    Harald

    Am 10.06.2025 um 11:18 schrieb Mark Summerfield:
    I tried adding this to the wiki page:

    ```
    ## Canvas outline default has changed

    When creating a canvas polygon in Tk 8.6 no outline is drawn by default.
    For Tk 9 the default is to draw a 1 pixel black line. To get the old behavior, create with the option `-outline ""`.
    ```

    Incidentally, is it possible to change email address on core.tcl-lang.org? When I click my username it offers options to change site skin, manage cookies and change password, but not to change email.

    On Tue, 10 Jun 2025 10:37:56 +0200, Harald Oehlmann wrote:
    Am 10.06.2025 um 10:10 schrieb Mark Summerfield:
    I have been porting a small GUI game ~1400LOC from Tcl/Tk 8.6 → 9.
    [snip]

    PS My ISP has now stopped supporting newsgroup access.
    And a few years ago Google stopped supporting them.
    I really wish there was a general Tcl/Tk mailing list that could be
    used.


    Mark,
    thanks for you effort.
    The porting wiki pages are:

    https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9&p
    https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&p

    The -outline is not mentioned there. I suppose, this is a bug.
    May you file a report?
    If it is not a bug, it would be great to add it to the wiki page.

    Thanks for all,
    Harald


    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Rich@rich@example.invalid to comp.lang.tcl on Tue Jun 10 13:38:34 2025
    From Newsgroup: comp.lang.tcl

    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    PS My ISP has now stopped supporting newsgroup access.

    Then sign up for an Eternal September account: https://www.eternal-september.org/

    And a few years ago Google stopped supporting them.

    That was actually a good thing, because 99.8% of the SPAM posts on
    Usenet were coming from Google.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Tue Jun 10 15:55:11 2025
    From Newsgroup: comp.lang.tcl

    Thanks for the action.
    Neverhteless, the change looks strange.
    For doublecheck, I have opened a ticket.

    Thanks for all,
    Harald

    Am 10.06.2025 um 11:18 schrieb Mark Summerfield:
    I tried adding this to the wiki page:

    ```
    ## Canvas outline default has changed

    When creating a canvas polygon in Tk 8.6 no outline is drawn by default.
    For Tk 9 the default is to draw a 1 pixel black line. To get the old behavior, create with the option `-outline ""`.
    ```

    Incidentally, is it possible to change email address on core.tcl-lang.org? When I click my username it offers options to change site skin, manage cookies and change password, but not to change email.

    On Tue, 10 Jun 2025 10:37:56 +0200, Harald Oehlmann wrote:
    Am 10.06.2025 um 10:10 schrieb Mark Summerfield:
    I have been porting a small GUI game ~1400LOC from Tcl/Tk 8.6 → 9.
    [snip]

    PS My ISP has now stopped supporting newsgroup access.
    And a few years ago Google stopped supporting them.
    I really wish there was a general Tcl/Tk mailing list that could be
    used.


    Mark,
    thanks for you effort.
    The porting wiki pages are:

    https://core.tcl-lang.org/tcl/wiki?name=Migrating+scripts+to+Tcl+9&p
    https://core.tcl-lang.org/tk/wiki?name=Migrating+scripts+to+Tk+9&p

    The -outline is not mentioned there. I suppose, this is a bug.
    May you file a report?
    If it is not a bug, it would be great to add it to the wiki page.

    Thanks for all,
    Harald


    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Helmut Giese@hgiese@ratiosoft.com to comp.lang.tcl on Tue Jun 10 17:29:25 2025
    From Newsgroup: comp.lang.tcl

    Rich <rich@example.invalid> schrieb:

    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    PS My ISP has now stopped supporting newsgroup access.

    Then sign up for an Eternal September account: >https://www.eternal-september.org/

    And a few years ago Google stopped supporting them.

    That was actually a good thing, because 99.8% of the SPAM posts on
    Usenet were coming from Google.

    I can second this: For quite some years now I have an account with eternal-september and in all this time there were at most a handful of time-outs which usually were gone after a short while. And it is a
    friendly service: you sign up and you never hear of them again.
    Helmut
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mark Summerfield@m.n.summerfield@gmail.com to comp.lang.tcl on Thu Jun 12 07:06:46 2025
    From Newsgroup: comp.lang.tcl

    On Tue, 10 Jun 2025 17:29:25 +0200, Helmut Giese wrote:

    Rich <rich@example.invalid> schrieb:

    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    PS My ISP has now stopped supporting newsgroup access.

    Then sign up for an Eternal September account: >>https://www.eternal-september.org/

    And a few years ago Google stopped supporting them.

    That was actually a good thing, because 99.8% of the SPAM posts on
    Usenet were coming from Google.

    I can second this: For quite some years now I have an account with eternal-september and in all this time there were at most a handful of time-outs which usually were gone after a short while. And it is a
    friendly service: you sign up and you never hear of them again. Helmut

    I am now using eternal-september.

    Wouldn't it be a good idea to update the page: https://www.tcl-lang.org/community/
    to drop the mentions of Google for the newsgroup and provide a link to eternal-september?
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Alan Grunwald@nospam.nurdglaw@gmail.com to comp.lang.tcl on Thu Jun 12 09:30:51 2025
    From Newsgroup: comp.lang.tcl

    On 12/06/2025 08:06, Mark Summerfield wrote:
    On Tue, 10 Jun 2025 17:29:25 +0200, Helmut Giese wrote:

    Rich <rich@example.invalid> schrieb:

    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    PS My ISP has now stopped supporting newsgroup access.

    Then sign up for an Eternal September account:
    https://www.eternal-september.org/

    And a few years ago Google stopped supporting them.

    That was actually a good thing, because 99.8% of the SPAM posts on
    Usenet were coming from Google.

    I can second this: For quite some years now I have an account with
    eternal-september and in all this time there were at most a handful of
    time-outs which usually were gone after a short while. And it is a
    friendly service: you sign up and you never hear of them again. Helmut

    I am now using eternal-september.

    Wouldn't it be a good idea to update the page: https://www.tcl-lang.org/community/
    to drop the mentions of Google for the newsgroup and provide a link to eternal-september?
    +1
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Ashok@apnmbx-public@yahoo.com to comp.lang.tcl on Thu Jun 12 16:52:53 2025
    From Newsgroup: comp.lang.tcl

    On 6/12/2025 12:36 PM, Mark Summerfield wrote:

    Wouldn't it be a good idea to update the page: https://www.tcl-lang.org/community/
    to drop the mentions of Google for the newsgroup and provide a link to eternal-september?

    It would, and now done along with other stale information.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Rich@rich@example.invalid to comp.lang.tcl on Thu Jun 12 14:28:03 2025
    From Newsgroup: comp.lang.tcl

    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    On Tue, 10 Jun 2025 17:29:25 +0200, Helmut Giese wrote:

    Rich <rich@example.invalid> schrieb:
    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    PS My ISP has now stopped supporting newsgroup access.

    Then sign up for an Eternal September account: >>>https://www.eternal-september.org/

    And a few years ago Google stopped supporting them.

    I can second this: For quite some years now I have an account with
    eternal-september and in all this time there were at most a handful of
    time-outs which usually were gone after a short while. And it is a
    friendly service: you sign up and you never hear of them again. Helmut

    I am now using eternal-september.

    Wouldn't it be a good idea to update the page: https://www.tcl-lang.org/community/
    to drop the mentions of Google for the newsgroup and provide a link to eternal-september?

    The wiki is end-user-editable. You can make the appropriate change
    yourself.
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Harald Oehlmann@wortkarg3@yahoo.com to comp.lang.tcl on Sun Jun 15 18:50:19 2025
    From Newsgroup: comp.lang.tcl

    Am 12.06.2025 um 16:28 schrieb Rich:
    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    On Tue, 10 Jun 2025 17:29:25 +0200, Helmut Giese wrote:

    Rich <rich@example.invalid> schrieb:
    Mark Summerfield <m.n.summerfield@gmail.com> wrote:
    PS My ISP has now stopped supporting newsgroup access.

    Then sign up for an Eternal September account:
    https://www.eternal-september.org/

    And a few years ago Google stopped supporting them.

    I can second this: For quite some years now I have an account with
    eternal-september and in all this time there were at most a handful of
    time-outs which usually were gone after a short while. And it is a
    friendly service: you sign up and you never hear of them again. Helmut

    I am now using eternal-september.

    Wouldn't it be a good idea to update the page:
    https://www.tcl-lang.org/community/
    to drop the mentions of Google for the newsgroup and provide a link to
    eternal-september?

    The wiki is end-user-editable. You can make the appropriate change
    yourself.

    Sorry, Rich, this is not on the Wiki.
    But Ashok has edited the page!
    Thanks a lot!
    Harald
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Colin Macleod@user7@newsgrouper.org.invalid to comp.lang.tcl on Mon Jun 16 08:20:22 2025
    From Newsgroup: comp.lang.tcl

    Alan Grunwald <nospam.nurdglaw@gmail.com> posted:

    On 12/06/2025 08:06, Mark Summerfield wrote:

    Wouldn't it be a good idea to update the page: https://www.tcl-lang.org/community/
    to drop the mentions of Google for the newsgroup and provide a link to eternal-september?
    +1

    Perhaps it's worth mentioning again that if you can't or would rather not install an NNTP client, you can get access through my web interface at: https://newsgrouper.org/comp.lang.tcl
    --
    Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk

    Warning: Gumption level low, top-up when possible!
    --- Synchronet 3.21a-Linux NewsLink 1.2