Tcl Library Source Code

View Ticket
Login
2026-11-15
13:36 • Ticket [450914ffff] example access Tk internals status still Open with 3 other changes artifact: 17a8ea6eb8 user: serhiy.storchaka
13:24
Fix [450914ffff]: the ftp hpupdate example failed at startup on Tk 9: it exposed the private tkButtonInvoke command, which is gone. Use a small helper that flashes and invokes the button. leaf check-in: a3dab9327c user: serhiy.storchaka tags: ftp-hpupdate-tk9
2009-04-11
03:28 • Ticket [450914ffff] example access Tk internals status still Open with 4 other changes artifact: afefeff750 user: dgp
2004-03-04
05:23 • Ticket [450914ffff]: 1 change artifact: 7cc986458f user: andreas_kupries
2002-06-25
20:58 • Ticket [450914ffff]: 5 changes artifact: 2eeacd993a user: dgp
2001-12-12
05:22 • Ticket [450914ffff]: 4 changes artifact: 342ac94cec user: andreas_kupries
04:10 • Ticket [450914ffff]: 1 change artifact: 08f52b130e user: andreas_kupries
2001-08-15
02:42 • Ticket [450914ffff]: 4 changes artifact: 2d7f5f19ce user: dgp
02:39 • Ticket [450914ffff]: 4 changes artifact: 4a1875f294 user: dgp
02:39 • Add attachment patch to ticket [450914ffff] artifact: 2a932958b0 user: dgp
2001-08-14
19:39 • New ticket [450914ffff] example access Tk internals. artifact: 1d02ecef79 user: dgp

Ticket UUID: 450914
Title: example access Tk internals
Type: Bug Version: None
Submitter: dgp Created on: 2001-08-14 19:39:52
Subsystem: ftp Assigned To: gwlester
Priority: 7 High Severity:
Status: Open Last Modified: 2026-11-15 13:36:40
Resolution: None Closed By:
    Closed on:
Description:
The hpupdate.tcl script calls the Tk private
command [tkButtonInvoke].  That command is
moving in Tk 8.4.

Here's a patch to workaround the problem.
User Comments: serhiy.storchaka added on 2026-11-15 13:36:40:

tkButtonInvoke is gone in Tk 9, so the hpupdate example now fails at startup. Proposed fix in branch ftp-hpupdate-tk9: a small helper flashes and invokes the button instead.


dgp added on 2009-04-11 03:28:31:
status?

dgp added on 2002-06-25 20:58:44:
Logged In: YES 
user_id=80530

increased priority. as 8.4 release approaches this is more
important.

andreas_kupries added on 2001-12-12 05:22:25:
Logged In: YES 
user_id=75003

I see six places invoking this command. We cannot use 
[<widget> invoke] as that bypasses even processing. The 
only way I see to get around using internal is to use 
[event generate] to explicitly simulate a mouse click.

Which is a bit ironic because "tkButtonInvoke" was written 
exactly to simulate a click on the button with the mouse 
when the button is invoked through the keyboard. It is 
exactly this for which the command is used here in the 
example, but we are not allowed to do so as it is declared 
private.

Question: Do we have plans to make parts of the ::tk 
command public ?

dgp added on 2001-08-15 02:42:54:
Logged In: YES 
user_id=80530

Committed workaround.  Leaving bug open, because the
real fix is to stop accessing Tk internals.

dgp added on 2001-08-15 02:39:53:

File Added - 9535: patch

Attachments: