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
#1
I have created the code to search, modify tables. I have created two windows, the second has two issues in the table.
1. The click event is not working, it's not returning any values. Hence not able to perform any update or edit.
2. When clicking the view button, the table values are updated as many time clicked. Not sure why it's happening like this.

I have attached the main fille, but not the dbconnect file.

Code Snippet:

    view_table = PG.Table(values=table_rows,
                          headings=table_toprow, max_col_width=25,
                          auto_size_columns=True,
                          display_row_numbers=True,
                          alternating_row_color='lightgreen',
                          justification='center',
                          key='-TABLE-',
                          selected_row_colors='red on yellow',
                          enable_events=True,
                          expand_x=True,
                          expand_y=True,
                          enable_click_events=True
                          )

    window1 = PG.Window('Inbound Operations', layout=[[col1, col2, col3, col4],
                                                      [view_button, add_button, update_button, delete_button],
                                                      [view_table]], resizable=True)
Thanks,
RS
Larz60+ write Sep-28-2023, 07:03 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
I modified for you. Please use BBCode tags on future posts.

Attached Files

.py   dbcongui.py (Size: 9.59 KB / Downloads: 94)
Reply


Messages In This Thread
Two issues in table created by PySimpleGUI - by ranjansanyal2007 - Sep-28-2023, 06:39 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