1
0

save invoices

This commit is contained in:
ThomasV
2014-06-06 16:16:14 +02:00
parent 2bbcae449c
commit 513f9c2d89
4 changed files with 90 additions and 11 deletions

View File

@@ -42,6 +42,7 @@ class PayToEdit(QTextEdit):
self.c = None
self.textChanged.connect(self.check_text)
self.outputs = []
self.is_pr = False
def lock_amount(self):
self.amount_edit.setFrozen(True)
@@ -54,8 +55,10 @@ class PayToEdit(QTextEdit):
self.setStyleSheet(frozen_style if b else normal_style)
def setGreen(self):
self.is_pr = True
self.setStyleSheet("QWidget { background-color:#00ff00;}")
def parse_address_and_amount(self, line):
x, y = line.split(',')
address = self.parse_address(x)
@@ -77,6 +80,9 @@ class PayToEdit(QTextEdit):
def check_text(self):
if self.is_pr:
return
# filter out empty lines
lines = filter( lambda x: x, self.lines())
outputs = []