def set_trade_total(self, value): self.ui.doubleSpinBoxTotal.setValue(money.to_float(value))
def set_trade_size(self, value): self.ui.doubleSpinBoxSize.setValue(money.to_float(value))
def set_trade_price(self, value): self.ui.doubleSpinBoxPrice.setValue(money.to_float(value))
def test_to_float(self): self.assertEquals(6.0, money.to_float(600000000))