コード例 #1
0
ファイル: coloredfloateditor.py プロジェクト: nvictor/Camelot
    def popupCalculator(self, value):
        from camelot.view.controls.calculator import Calculator

        calculator = Calculator()
        calculator.setValue(value)
        calculator.calculation_finished_signal.connect(self.calculation_finished)
        calculator.exec_()
コード例 #2
0
 def popupCalculator(self, value):
     from camelot.view.controls.calculator import Calculator
     calculator = Calculator()
     calculator.setValue(value)
     calculator.calculation_finished_signal.connect(
         self.calculation_finished)
     calculator.exec_()