Offer button, instead of opening settings every time

This commit is contained in:
Fierelier 2023-08-23 13:56:31 +02:00
parent 67f30b55bb
commit 6bcbb06c9f

View File

@ -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):