I have created a debug print for every user app events (mouse click & API requests) like shown below. How do you display them in QTextEdit, so when the app took longer time to process users don't assume the app is hang or something ?
import logging
def setupUi(self, MainWindow):
.....
self.
textEdit = QtWidgets.
QTextEdit(self.
centralwidget) self.
textEdit.
setGeometry(QtCore.
QRect(50,
890,
960,
80))self.textEdit.setObjectName("textEdit")
import logging
def setupUi(self, MainWindow):
.....
self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
self.textEdit.setGeometry(QtCore.QRect(50, 890, 960, 80))
self.textEdit.setObjectName("textEdit")
To copy to clipboard, switch view to plain text mode
if DEBUG:
logging.basicConfig(filename='example.log', level=logging.DEBUG)
logging.debug(self.wooconsumerweb.text())
logging.debug(self.wooconsumerinput.text())
logging.debug(self.wooconsumersecret.text())
if DEBUG:
logging.basicConfig(filename='example.log', level=logging.DEBUG)
logging.debug(self.wooconsumerweb.text())
logging.debug(self.wooconsumerinput.text())
logging.debug(self.wooconsumersecret.text())
To copy to clipboard, switch view to plain text mode
Bookmarks