I just realized that my Copy procedure for entries does not work anymore.
So I have some ttk entries with some text inside.
I select the text in one entry, either hit "CTRL-C" or right click to
show a customized context menu and ultimatelly the command is executed:
event generate $w <<Copy>>
The error I get is:
*** START OF ERROR MESSAGE ***
can't set "tk::Priv(data)": parent namespace doesn't exist
*** ERROR INFO ***
can't set "tk::Priv(data)": parent namespace doesn't exist
-a-a-a while executing
"catch {tk::EntryGetSelection $win} tk::Priv(data)"
-a-a-a (procedure "::numentry::Snit_methodCopyVal" line 8)
-a-a-a invoked from within ".vpan.main.workframe.detailsframe.sw.sf.mf.cf.measure.props.f.f5.y
CopyVal"
-a-a-a ("uplevel" body line 1)
-a-a-a invoked from within
"uplevel 1 [linsert $args 0 $self]"
-a-a-a invoked from within
"::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal"
-a-a-a (command bound to event)
*** ERROR STACK ***
INNER:::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal
UP:1
*** END OF ERROR MESSAGE ***
Is this a bug in Tcl 9.0.2?
I don't think this happend in Tcl 8.
Thanks
Alex
I have seen this in a bug report.9.0.2
What is the Tk version ?
I just realized that my Copy procedure for entries does not work anymore.It's weird: Not all entries in my app lead to the above error...
So I have some ttk entries with some text inside.
I select the text in one entry, either hit "CTRL-C" or right click to
show a customized context menu and ultimatelly the command is executed:
event generate $w <<Copy>>
The error I get is:
*** START OF ERROR MESSAGE ***
can't set "tk::Priv(data)": parent namespace doesn't exist
*** ERROR INFO ***
can't set "tk::Priv(data)": parent namespace doesn't exist
-a-a-a while executing
"catch {tk::EntryGetSelection $win} tk::Priv(data)"
-a-a-a (procedure "::numentry::Snit_methodCopyVal" line 8)
-a-a-a invoked from within ".vpan.main.workframe.detailsframe.sw.sf.mf.cf.measure.props.f.f5.y
CopyVal"
-a-a-a ("uplevel" body line 1)
-a-a-a invoked from within
"uplevel 1 [linsert $args 0 $self]"
-a-a-a invoked from within
"::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal"
-a-a-a (command bound to event)
*** ERROR STACK ***
INNER:::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal
UP:1
*** END OF ERROR MESSAGE ***
Is this a bug in Tcl 9.0.2?
I don't think this happend in Tcl 8.
Thanks
Alex
I just realized that my Copy procedure for entries does not work anymore.One thing: The entry was created using "numentry".
So I have some ttk entries with some text inside.
I select the text in one entry, either hit "CTRL-C" or right click to
show a customized context menu and ultimatelly the command is executed:
event generate $w <<Copy>>
The error I get is:
*** START OF ERROR MESSAGE ***
can't set "tk::Priv(data)": parent namespace doesn't exist
*** ERROR INFO ***
can't set "tk::Priv(data)": parent namespace doesn't exist
-a-a-a while executing
"catch {tk::EntryGetSelection $win} tk::Priv(data)"
-a-a-a (procedure "::numentry::Snit_methodCopyVal" line 8)
-a-a-a invoked from within ".vpan.main.workframe.detailsframe.sw.sf.mf.cf.measure.props.f.f5.y
CopyVal"
-a-a-a ("uplevel" body line 1)
-a-a-a invoked from within
"uplevel 1 [linsert $args 0 $self]"
-a-a-a invoked from within
"::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal"
-a-a-a (command bound to event)
*** ERROR STACK ***
INNER:::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal
UP:1
*** END OF ERROR MESSAGE ***
Is this a bug in Tcl 9.0.2?
I don't think this happend in Tcl 8.
Thanks
Alex
* meshparts <alexandru.dadalau@meshparts.de>https://wiki.tcl-lang.org/page/Entry+widget+for+numeric+data
| One thing: The entry was created using "numentry".
Seems 'numentry' is not part of stock Tk or Tklib.
Where does it come from?
R'
Am 18.12.2025 um 16:46 schrieb Ralf Fassel:
* meshparts <alexandru.dadalau@meshparts.de>https://wiki.tcl-lang.org/page/Entry+widget+for+numeric+data
| One thing: The entry was created using "numentry".
Seems 'numentry' is not part of stock Tk or Tklib.
Where does it come from?
R'
It should be using absolute paths: ::tk::Priv(data)Thanks Rich! Indeed, now it looks obvious to me. And I could fix the
On the first glance using tk::Priv(data) here seems unneccessary, youVery good observation!
could simply use a temporary instead, or since it is not used here
anyway, just omit it completely
I just realized that my Copy procedure for entries does not work anymore.
So I have some ttk entries with some text inside.
I select the text in one entry, either hit "CTRL-C" or right click to
show a customized context menu and ultimatelly the command is executed:
event generate $w <<Copy>>
The error I get is:
*** START OF ERROR MESSAGE ***
can't set "tk::Priv(data)": parent namespace doesn't exist
*** ERROR INFO ***
can't set "tk::Priv(data)": parent namespace doesn't exist
while executing
"catch {tk::EntryGetSelection $win} tk::Priv(data)"
(procedure "::numentry::Snit_methodCopyVal" line 8)
invoked from within ".vpan.main.workframe.detailsframe.sw.sf.mf.cf.measure.props.f.f5.y CopyVal"
("uplevel" body line 1)
invoked from within
"uplevel 1 [linsert $args 0 $self]"
invoked from within
"::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal"
(command bound to event)
*** ERROR STACK ***
INNER:::snit::RT.CallInstance ::numentry::Snit_inst2 CopyVal
UP:1
*** END OF ERROR MESSAGE ***
Is this a bug in Tcl 9.0.2?
I don't think this happend in Tcl 8.
Thanks
Alex
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 21:20:58 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
6 files (8,794K bytes) |
| Messages: | 186,211 |
| Posted today: | 1 |