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:
Thanks,
RS
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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 ) |
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.
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