Offer button, instead of opening settings every time
This commit is contained in:
parent
67f30b55bb
commit
6bcbb06c9f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user