def start_new_window(self, config): path = config.get_wallet_path() if path not in self.windows: w = ElectrumWindow(config, self.network, self) w.connect_slots(self.timer) w.load_wallet_file(path) w.show() self.windows[path] = w w = self.windows[path] url = config.get('url') if url: w.pay_to_URI(url) return w
def start_new_window(self, config, path=None): if path is None: path = config.get_wallet_path() for w in self.windows: if w.config.get_wallet_path() == path: w.bring_to_top() break else: w = ElectrumWindow(config, self.network, self) w.connect_slots(self.timer) w.load_wallet_file(path) w.show() self.windows.append(w) url = config.get('url') if url: w.pay_to_URI(url) return w