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
#3
(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.
Reply


Messages In This Thread
RE: Two issues in table created by PySimpleGUI - by ranjansanyal2007 - Oct-03-2023, 10:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PySimpleGUI Try Except jamesaarr 1 2,046 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