Example #1
0
 def set_trade_total(self, value):
     self.ui.doubleSpinBoxTotal.setValue(money.to_float(value))
Example #2
0
 def set_trade_size(self, value):
     self.ui.doubleSpinBoxSize.setValue(money.to_float(value))
Example #3
0
 def set_trade_price(self, value):
     self.ui.doubleSpinBoxPrice.setValue(money.to_float(value))
Example #4
0
 def test_to_float(self):
     self.assertEquals(6.0, money.to_float(600000000))