S
S
Sanchoys2282020-08-12 13:30:31
Python
Sanchoys228, 2020-08-12 13:30:31

About running multiple processes?

I have one question.
Wrote a program in selenium. Made an interface in qtdesinger. Connected to the function buttons. One problem:
while clicking the "Start Program" button, selenium starts to launch the browser, but the main program window is not responding. And how to make them work simultaneously both the selenium process and the interface itself

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SKEPTIC, 2020-08-12
@Sanchoys228

Try running the browser on a different thread.

import threading

def start_browser():
    #тут код запуска брувзера

threading.Thread(target=start_browser).start()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question