pysimplegui

How to display different layouts based on button clicks in PySimple GUI? (Persistent window loop)

ⅰ亾dé卋堺 提交于 2020-06-24 10:33:11
问题 I am wondering if there is a way that I can manage different layouts based on button clicks in PySimple GUI. I am just starting off using this framework and I want to find the best way of navigating menus. Doesn't have to be using different layouts but this just struck me of the most intuitive way of doing it. I was thinking like maybe having a list of layouts that get pushed to the top when a certain submenu button is selected. layouts = [layout1, layout2, layout3, layout4] Or maybe start

How to display different layouts based on button clicks in PySimple GUI? (Persistent window loop)

偶尔善良 提交于 2020-06-24 10:32:58
问题 I am wondering if there is a way that I can manage different layouts based on button clicks in PySimple GUI. I am just starting off using this framework and I want to find the best way of navigating menus. Doesn't have to be using different layouts but this just struck me of the most intuitive way of doing it. I was thinking like maybe having a list of layouts that get pushed to the top when a certain submenu button is selected. layouts = [layout1, layout2, layout3, layout4] Or maybe start

Updating Popup.Animated to play gif until external task is completed (PYSimpleGUI)

末鹿安然 提交于 2020-06-12 20:35:13
问题 I am looking to create a UI that displays an animated popup while another task is being carried out. That will exit upon completion. I am using PYSimpleGUI and am using the example listed here to base my work off. I can get a single frame of the animation to display once I start the code and exit upon completion of the task but can't get it to play the entire gif. Code: import queue import threading import time import PySimpleGUI as sg # ############################# User callable CPU

Updating Popup.Animated to play gif until external task is completed (PYSimpleGUI)

不打扰是莪最后的温柔 提交于 2020-06-12 20:34:19
问题 I am looking to create a UI that displays an animated popup while another task is being carried out. That will exit upon completion. I am using PYSimpleGUI and am using the example listed here to base my work off. I can get a single frame of the animation to display once I start the code and exit upon completion of the task but can't get it to play the entire gif. Code: import queue import threading import time import PySimpleGUI as sg # ############################# User callable CPU

How can I create radio buttons from a list using PySimpleGui?

末鹿安然 提交于 2020-05-27 05:05:10
问题 I want use PySimpleGui to dynamically create radio buttons from a list, but my efforts to insert a loop in the layout code are catching syntax errors. Can this be done with the API or do I need to slog it out with tkinter? My list is being generated by a targeted file search of a network drive. I've tried concatenating 'layout', putting the radio button section in a for loop. Also attempted to insert a for loop in the [sg.Radio()] declaration itself. Neither works. import PySimpleGUI as sg

How to correctly use File Explorer browse function - PySimpleGUI

拥有回忆 提交于 2020-04-18 03:57:48
问题 I am trying to use the browse function in PySimpleGUI. I have used PySimpleGUI file browser specific file type to find out how to browse. However there are two file types that I want to choose from and multiple files need to be selected for this to work. My question: How do you use the browse function for browsing two types of files? and also How do you allow multiple files to be browsed? and finally How do you tell each file apart? I know that there is a key function for getting data but how