How to do background task in gtk3-python?

后端 未结 2 601
悲哀的现实
悲哀的现实 2021-01-18 23:49

I have this main thread:

Gui.py

from gi.repository import Gtk, Gdk
import Process
import gobject

class gui():
    def __init__(self):
        self.w         


        
2条回答
  •  無奈伤痛
    2021-01-19 00:16

    As you suggested you need to start another thread for this. Usually threading in python is pretty straightforward but it can get tricky with GUIs.

    This should be of help: Python. Doing some work on background with Gtk GUI

提交回复
热议问题