Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Why does tk_popup magically reappear?

瀏覽次數:46 次
跳到第一則未讀訊息

Busirane

未讀,
2018年5月3日 下午2:40:182018/5/3
收件者:
What's the explanation for this behavior:

(Desktop) 1 % set tcl_platform(platform)
windows
(Desktop) 2 % info patchlevel
8.5.13
(Desktop) 3 % rename tk_popup _tk_popup
(Desktop) 4 % info proc tk_popup
(Desktop) 5 % tk_popup
wrong # args: should be "tk_popup menu x y ?entry?"
(Desktop) 6 % info proc tk_popup
tk_popup

Why does tk_popup reappear after being renamed; aome kind of bgerror handling?

Busirane

未讀,
2018年5月3日 下午3:19:212018/5/3
收件者:
On Thursday, May 3, 2018 at 2:40:18 PM UTC-4, Busirane wrote:
> aome kind of bgerror handling?

That should, of course, be "some kind of bgerror handling?".

Interestingly, it doesn't reappear if you actually define a new tk_popup:

(Desktop) 1 % rename tk_popup _tk_popup
(Desktop) 2 % proc tk_popup args {}
(Desktop) 3 % tk_popup
(Desktop) 4 %

Christian Gollwitzer

未讀,
2018年5月3日 下午4:38:452018/5/3
收件者:
Am 03.05.18 um 21:19 schrieb Busirane:
https://www.tcl.tk/man/tcl8.6/TclCmd/library.htm#M8

Christian

Busirane

未讀,
2018年5月4日 下午2:13:282018/5/4
收件者:
On Thursday, May 3, 2018 at 4:38:45 PM UTC-4, Christian Gollwitzer wrote:
> https://www.tcl.tk/man/tcl8.6/TclCmd/library.htm#M8

D'oh! Thanks, Christian.
0 則新訊息