def onChange(self): if self.value.text() != "": defaultFloat = float(self.value.text()) num, ok = QInputDialog.getDouble(self, "Input", "Enter new value:", defaultFloat, min=0, max=2147483647, decimals=3) if ok: self.value.setText(str(num))
def scaleCB(char): from PySide.QtGui import QInputDialog val, ok = QInputDialog.getDouble(None, "Set Scale", "Scale: ", 1.0, 0.1, 100.0, 2) if ok: char.scaleCharacter(val)