Menu

#47 example access Tk internals

open
ftp (55)
7
2004-03-03
2001-08-14
Don Porter
No

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.

Discussion

  • Don Porter

    Don Porter - 2001-08-14

    workaround

     
  • Don Porter

    Don Porter - 2001-08-14

    Logged In: YES
    user_id=80530

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

     
  • Andreas Kupries

    Andreas Kupries - 2001-12-11
    • assigned_to: nobody --> andreas_kupries
     
  • Andreas Kupries

    Andreas Kupries - 2001-12-11

    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 ?

     
  • Don Porter

    Don Porter - 2002-06-25
    • priority: 5 --> 7
     
  • Don Porter

    Don Porter - 2002-06-25

    Logged In: YES
    user_id=80530

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

     
  • Andreas Kupries

    Andreas Kupries - 2004-03-03
    • assigned_to: andreas_kupries --> gwlester
     
  • Don Porter

    Don Porter - 2009-04-10

    status?