Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

user interface - Is there a way to save progress in a desktop application developed in python and pyqt5?

Our application process a large audio file into number of smaller segemnts and displays it on a table in the GUI. The user can listen, label and comment on each segment in the table. So is there a way to save the progress that can be resumed from where the user left off with the last accessed row in the table? For example in the table has 700 rows and the user has worked with 100 and closes the application, the next time they open the application they must be able to start working with the 101st row and the previous work must be saved.

question from:https://stackoverflow.com/questions/66059335/is-there-a-way-to-save-progress-in-a-desktop-application-developed-in-python-and

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

pickle (import pickle) allows you to write/read python objects and therefore save a progress status from one session to another.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...