Editing component tag in App Designer
70 Ansichten (letzte 30 Tage)
Jeff Baker am 2 Jun. 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 am 20 Jan. 2020
Bearbeitet: Dan am 20 Jan. 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).