def fileopen(self):
home = expanduser("~")
desktop = os.path.join(home, 'Desktop')
file = QtWidgets.QFileDialog.getOpenFileName(parent=self, caption="- o p e n -",
directory=desktop,
filter="All (*);;Exes (*.txt )",
initialFilter="Exes (*.txt )")
self.fileName = file[0] # *.jpq *.jpeg
self.le = QPlainTextEdit(self)
self.le.setGeometry(QtCore.QRect(207, 45, 341, 354))
self.le.setStyleSheet("""
QPlainTextEdit {background-color: #000000;}
QPlainTextEdit {background-color:#000000} QPlainTextEdit {color:#FFFFFF}
QPlainTextEdit {
border-style: outset;
border-width: 1px;
border-color: #FFFFFF;} """)
Как из выбранного файла txt вывести текст в поле QPlainTextEdit???