I have sg.Column whit enabled options "scrollable" and "vertical_scroll_only". I add new elements to it using extend_layout. When there are a lot of elements, the scroll is not activated. I used this article – How to add a field or element by clicking a button in PySimpleGUI? How can I fix it? import PySimpleGUI as… Read More Python – PySimpleGUI. How to make a scroll in sg.Column?
I want to make a widget window, but the Bottom and Text part aren’t working properly and it keps getting sintax errors at the same part: import PySimpleGUI as sg layout = [ [sg.Text("Hello from PySimpleGUI")], [sg.Button("Close")] window = sg.Window("Demo, layout") ] while true: event, values = window.read() if event == "Close" or event ==… Read More SytanxError with sg. argument from PySimpleGUI in Python
I want to use PySimpleGUI to create a basic GUI, that takes a value as input, and if a button is pressed, a function should start with the input text as parameter. The problem is that the GUI crashes and no errors are printed, so I cant understand whats the issue. Even if I use… Read More Call function in PysimpleGUI
I am trying to write a script which writes path data to an excel file. The function is working, I just want to create an simple GUI using PySimpleGUI where the user can give a path. The path variable is used in the function. Now I have the error: str_path = int(values[‘-INF1-‘]) TypeError: tuple indices… Read More convert path to excel using python and pysimplegui gives typeError
I have created a PySimpeGUI table using the following code: import pandas as pd import PySimpleGUI as sg df = pd.read_csv(‘C:/Data/dummydata.csv’) data = df.values.tolist() headings = df.columns.tolist() def main(): layout = [sg.Table(values=data, headings=headings, auto_size_columns=True, display_row_numbers=False, num_rows = len(data), enable_events=True, justification=’left’, key=’_TABLE_’, vertical_scroll_only = False)], window = sg.Window(‘Dummy Name’, auto_size_text=True, auto_size_buttons=True, grab_anywhere=False, resizable=True, layout=layout, finalize=True) while… Read More How do I Wrap Text in PySimpleGUI Table Headings
Working on some code that uses pysimplegui as the UI and SQlite for the data sorting. I’m using SQLite’s execute function to select data based on input from the user in the UI through variables. For example user wants to search for part name they input all or part of the name into the box,… Read More PYTHON SQLITE selecting multiple where conditions that may or may not exist