Skip to content

Commit b2b5c13

Browse files
author
plinux
committed
change lineEdit.clear()
1 parent 8637c3c commit b2b5c13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CodeCreator.v1.0.0.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,18 @@ def retranslateUi(self, dialog):
8282
self.lineEditTITLE.setPlaceholderText(_translate("dialog", "Titel"))
8383
self.labelTITLE.setText(_translate("dialog", "TITLE"))
8484

85-
8685
def clickMethod(self):
8786
output = f'<li><a href="{self.lineEditLINK.text()}" target="_blank"><img data-src="{self.lineEditBILD.text()}" class="lazyload" loading="lazy" title="{self.lineEditTITLE.text()}" border="2"/>{self.lineEditNAME.text()}</a></li>\n '
8887
with open(FILENAME, "a", encoding='UTF-8') as output_file:
8988
output_file.write(output)
90-
print(f'{output}'), (self.lineEditLINK.clear()), (self.lineEditBILD.clear()), (self.lineEditTITLE.clear()), (self.lineEditNAME.clear())
89+
print(f'{output}')
90+
(self.lineEditLINK.clear())
91+
(self.lineEditBILD.clear())
92+
(self.lineEditTITLE.clear())
93+
(self.lineEditNAME.clear())
9194

9295

9396
FILENAME = "output.txt"
94-
9597

9698
if __name__ == "__main__":
9799
import sys

0 commit comments

Comments
 (0)