Oct-03-2023, 10:11 AM
(Sep-29-2023, 07:53 PM)deanhystad Wrote: This is the problem with the clicked event in the view table.
while True: event1, values1 = window1.read() . . . elif '+CLICKED+' in event: PG.popup("You clicked row:{} Column: {}".format(event[2][0], event[2][1]))You check if '+CLICKED+' is in event, not event1.
I don't understand Q2. If you click the View button multiple times, shouldn't the view update multiple times?
Thanks for your response.
1. This '+CLICKED' in event is not working if I try as event1 == '+CLICKED+', As per your code it's working, but failing while closing with TypeError: argument of type 'NoneType' is not iterable
2. Question 2: If I select view it is showing table. Now If I select another value in the text box and click view, the previous values stays. Not sure how remove previous and get the new values.