Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Were there fewer fools, knaves would starve. -- Anonymous


devel / comp.lang.tcl / tk print and diffs with wish and tclsh

SubjectAuthor
o tk print and diffs with wish and tclshgreg

1
tk print and diffs with wish and tclsh

<5865e6f2-271d-4dba-961d-aea0d20e113bn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12516&group=comp.lang.tcl#12516

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:622a:1046:b0:412:d46:a8c2 with SMTP id f6-20020a05622a104600b004120d46a8c2mr46200qte.1.1694579483899;
Tue, 12 Sep 2023 21:31:23 -0700 (PDT)
X-Received: by 2002:a05:6870:98aa:b0:1c1:1955:e358 with SMTP id
eg42-20020a05687098aa00b001c11955e358mr510392oab.10.1694579483591; Tue, 12
Sep 2023 21:31:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.niel.me!glou.org!news.glou.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Tue, 12 Sep 2023 21:31:23 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=185.250.212.130; posting-account=99ziWAoAAADLScDbI_CyfIcpa_gFZ0zh
NNTP-Posting-Host: 185.250.212.130
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5865e6f2-271d-4dba-961d-aea0d20e113bn@googlegroups.com>
Subject: tk print and diffs with wish and tclsh
From: gregor.ebbing@googlemail.com (greg)
Injection-Date: Wed, 13 Sep 2023 04:31:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: greg - Wed, 13 Sep 2023 04:31 UTC

when calling the script with wish, tclsh and tclsh with tkcon
wish an error on the 2nd print call
tclsh and tkcon an error on the 2nd print call
tclsh an error on the 1st print call

tcltk from https://degitlab-ext.terma.com/tper/tcltk

#printtest001.tclI have different results
package require Tk
#package require tkcon
#tkcon show
proc call {} {
set err ""
catch {tk print .t} out
..t insert end "arr: [array get ::tk::print::printargs]\n"
..t insert end "out: $out \n\n"
}

text .t
button .btn -text print -command {call}
..t insert end "[info patchlevel] \n"
..t insert end "[tk windowingsystem]\n"
..t insert end "[info nameofexecutable]\n"
#.t insert end "arr: [array get ::tk::print::printargs]\n"

pack .t -fill both -expand 1
pack .btn -expand 0

if {0} {
#wish87.exe
#1
8.7a6
win32
C:/Tcl/bin/wish87.exe
arr: resolution {600 600} pl 11692 tm 1000 lm 1000 resx 600 copies 1 resy 600 bm 1000 rm 1000 pw 8267 hDC šjÏü
out:
#2
arr: resolution {600 600} pl 11692 tm 1000 lm 1000 resx 600 copies 1 resy 600 bm 1000 rm 1000 pw 8267 hDC šjÏü
out: can't read "charwidths()": no such element in array

#tclsh
8.7a6
win32
C:/Tcl/bin/tclsh.exe
arr:
out: can't read "printargs(hDC)": no such element in array

#tclsh and tkcon
#1
8.7a6
win32
C:/Tcl/bin/tclsh.exe
arr: resolution {600 600} pl 11692 tm 1000 lm 1000 resx 600 copies 1 resy 600 bm 1000 rm 1000 pw 8267 hDC Àè—S
out:

#2
arr: resolution {600 600} pl 11692 tm 1000 lm 1000 resx 600 copies 1 resy 600 bm 1000 rm 1000 pw 8267 hDC Àè—S
out: can't read "charwidths(À)": no such element in array

}

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor