Python Forum
[PyGUI] Two issues in table created by PySimpleGUI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGUI] Two issues in table created by PySimpleGUI
#4
Quote: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
Looks like you'll need to check if event[2] is None.

Quote: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.
You only append. You do not reset the list.
for result in results:
    table_rows.append(list(result))  # <-  Appending here
You should do this instead.
table_rows = result
Reply


Messages In This Thread
RE: Two issues in table created by PySimpleGUI - by deanhystad - Oct-03-2023, 12:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PySimpleGUI Try Except jamesaarr 1 2,048 Nov-18-2021, 02:02 PM
Last Post: jamesaarr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020