def importConfig(self): chain = self.config.get(self.section, 'chain') channame = self.config.get(self.section, 'channame') fee = MM_util.truncate( decimal.Decimal(self.config.get(self.section, 'fee'))) minconf = self.config.getint(self.section, 'minconf') bmuser = self.config.get(self.section, 'bmuser') bmpswd = self.config.get(self.section, 'bmpswd') bmhost = self.config.get(self.section, 'bmhost') bmport = self.config.getint(self.section, 'bmport') btcuser = self.config.get(self.section, 'btcuser') btcpswd = self.config.get(self.section, 'btcpswd') btchost = self.config.get(self.section, 'btchost') btcport = self.config.getint(self.section, 'btcport') return ( chain, channame, fee, minconf, \ bmuser, bmpswd, bmhost, bmport, \ btcuser, btcpswd, btchost, btcport )
def value_input(self, prompt): double, ok = QInputDialog.getDouble( \ self, "Input Amount", prompt, decimals=8, min=0.00000001) if ok: return MM_util.truncate(decimal.Decimal(double))