1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

Add end option for Console.log (default: \n)

This commit is contained in:
Dummerle 2022-01-08 17:08:22 +01:00
parent 9c29b8c46c
commit 93ba380e27
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -40,8 +40,8 @@ class ConsoleWindow(QWidget):
f.close()
self.save_button.setText(self.tr("Saved"))
def log(self, text):
self.console.log(text)
def log(self, text: str, end: str = "\n"):
self.console.log(text + end)
def error(self, text):
self.console.error(text)