Hi all,
First time posting here, so thank you in advance for your help.
I am writing a small program that displays information organized by month in rows. Each row has about eight widgets it in (mostly labels). The rows are added to a layout, which is integrated into a scroll area so the user can scroll to see all of the rows/information.
When the user navigates between months, the rows update to reflect the new information. They are updated by changing out the text of the labels and hiding/showing any rows that are no longer in use/need to be used. I do this by calling isVisible() to the widgets of each respective row.
I am noticing that there is a significant performance hit when calling isVisible(True) multiple times in succession. For a given update for a new month, there might be about 800 calls of isVisible(True). This causes about a five second delay.
My question is: is there a better way I should be organizing these calls to reduce the impact to performance? Or - is there a better way to hide/show a significant number of widgets?