From 6bcbb06c9f7520214fa3e0eb1cba50c596821278 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 23 Aug 2023 13:56:31 +0200 Subject: [PATCH] Offer button, instead of opening settings every time --- batchprint.pyw | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/batchprint.pyw b/batchprint.pyw index 0862235..064f44b 100644 --- a/batchprint.pyw +++ b/batchprint.pyw @@ -107,6 +107,10 @@ class printerWindow(QMainWindow): self.cButton.setText("OK") self.cButton.clicked.connect(self.cOpenList) + self.cButtonSettings = QPushButton(self) + self.cButtonSettings.setText("Settings") + self.cButtonSettings.clicked.connect(self.cOpenSettings) + self.cResizeElements() self.show() @@ -134,9 +138,12 @@ class printerWindow(QMainWindow): except: pass self.close() - printerOpenProperties(printer) printerOpenQueue(printer) windows.append(queueWindow(printer)) + + def cOpenSettings(self): + printer = self.cDropdown.currentText() + printerOpenProperties(printer) class queueWindow(QMainWindow): def __init__(self,printer,*args,**kwargs):