Answer the question
In order to leave comments, you need to log in
Python,pyqt5 button fires only 1 time, why?
Hello! Please help ...
The code below displays a window with an html page
my_web = QWebEngineView()
def opensite():
my_web.load(QUrl.fromLocalFile(tesgg2+'.html'))
my_web.show()
opfi2.clicked.connect(opensite)
Answer the question
In order to leave comments, you need to log in
Perhaps the matter is that when the window is closed, the object responsible for the window dies.
Are you creating the button programmatically or in interface designer?
As a rule, the button has a property, it is either just clickable or wrung out, that is, it retains its position when clicked .. maybe this is your case ..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question