Exemplo n.º 1
0
 def newClicked(self):
     try:
         self.size = QtCore.QSize(int(self.wW.text()), int(self.hW.text()))
     except ValueError:
         self.errorL.setText("ERROR : You must enter a number !")
         return
     self.palette = import_palette(self.paletteDict[self.paletteW.currentText()])
     if self.size.isEmpty():
         self.errorL.setText("ERROR : The size must be greater than 0 !")
     else:
         self.accept()
Exemplo n.º 2
0
 def newClicked(self):
     self.size = QtCore.QSize(int(self.wW.text()), int(self.hW.text()))
     self.palette = import_palette(self.paletteDict[self.paletteW.currentText()])
     self.accept()