Esempio n. 1
0
 def slot_trigger_line_width(self):
     width = QInputDialog.getDouble(
         self, "Width selection",
         "Please pass decimal value from range 0.01 to 20.00 <br /> with maximally "
         "2 decimal places", self.graphicsView.actual_pen.width(), 0.01,
         20.00, 2, Qt.WindowFlags(), 1.0)
     if width[1]:
         self.graphicsView.actual_pen.setWidthF(width[0])
Esempio n. 2
0
 def getDouble(self, *args, **kwargs):
     result, okPressed = QInputDialog.getDouble(self, *args, **kwargs)
     return result, okPressed