Re: How to pass an object from inside its own method to a helper function

Liste des GroupesRevenir à cl tcl 
Sujet : Re: How to pass an object from inside its own method to a helper function
De : mark (at) *nospam* qtrac.eu (Mark Summerfield)
Groupes : comp.lang.tcl
Date : 11. Jul 2024, 11:03:27
Autres entêtes
Message-ID : <mwSdnbrrgIByMBL7nZ2dnZfqnPcAAAAA@brightview.co.uk>
References : 1
User-Agent : Pan/0.154 (Izium; 517acf4)
I worked out how to do it:

proc make_file_menu {app} {
    .menu.file add command -command [list ${app}::my on_quit] \
       -label Quit -underline 0 -accelerator Ctrl+Q
}

For the caller I used:

make_file_menu [self]

Date Sujet#  Auteur
11 Jul 24 * How to pass an object from inside its own method to a helper function5Mark Summerfield
11 Jul 24 `* Re: How to pass an object from inside its own method to a helper function4Mark Summerfield
11 Jul 24  `* Re: How to pass an object from inside its own method to a helper function3Schelte
11 Jul 24   `* Re: How to pass an object from inside its own method to a helper function2Mark Summerfield
11 Jul 24    `- Re: How to pass an object from inside its own method to a helper function1Ralf Fassel

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal