Editing component tag in App Designer
40 visualizzazioni (ultimi 30 giorni)
Jeff Baker il 2 Giu 2020
A good use for the tag property is if many buttons will share the same callback. The callback can use the event.Source.Tag property to figure out which button was pressed.
Dan il 20 Gen 2020
Modificato: Dan il 20 Gen 2020
Nothing like writing a response and figuring it out a few minutes later ...
Apps have public properties for each gui item that can be referenced generically as a list using the metaclass function. Therefore, no need for tags.
Short answer: Use public properties to reference the GUI items instead of tags ... tags provide no added value that I can see other than the need to tag things dynamically (which could be done of course).