Minor GUI fixes

This commit is contained in:
Dwerg 2018-02-26 03:23:59 +01:00 committed by GitHub
parent 03a1910992
commit fe840a83e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 13 deletions

View File

@ -30,7 +30,7 @@ compressed = config.getboolean("settings", "compressed")
with open('wallet.dat', 'rb') as f: with open('wallet.dat', 'rb') as f:
count = 0 count = 0
klist = [] klist = []
header = binascii.unhexlify("f70001d63081d30201010420") header = binascii.unhexlify("0201010420")
data = f.read() data = f.read()
header_index = data.find(header, 0) header_index = data.find(header, 0)
key = data[header_index + len(header): header_index + len(header) + 32] key = data[header_index + len(header): header_index + len(header) + 32]
@ -219,7 +219,7 @@ def submitSearch():
outBox.update() outBox.update()
if not found: if not found:
outBox.configure(state='normal') outBox.configure(state='normal')
outBox.insert("end", "Entered addresse(s) was not found!") outBox.insert("end", "Entered address(es) was not found!")
outBox.configure(state='disabled') outBox.configure(state='disabled')
else: else:
outBox.configure(state='normal') outBox.configure(state='normal')
@ -266,34 +266,44 @@ instruction=Label(frame2,
text="Enter a list of addresses to search for below", text="Enter a list of addresses to search for below",
font=("", 11 , "bold") font=("", 11 , "bold")
) )
instruction.grid(row=0) instruction.grid(row=0, column=1)
inField = Text(frame2, height=15, width=40) inField = Text(frame2, height=15, width=40)
inField.grid(row=1) inField.grid(row=1, column=1)
okButton = Button(frame2, text="OK", command=submitSearch) okButton = Button(frame2, text="OK", command=submitSearch)
okButton.grid(row=2, padx=55, pady=5, sticky=E) okButton.grid(row=2, column=1, padx=55, pady=5, sticky=E)
cancelButton = Button(frame2, text="Close", command=kill) cancelButton = Button(frame2, text="Close", command=kill)
cancelButton.grid(row=2, padx=5, pady=5, sticky=E) cancelButton.grid(row=2, column=1, padx=5, pady=5, sticky=E)
spacing4 = Frame(frame2, width=10)
spacing5 = Frame(frame2, width=10)
spacing4.grid(column=0, rowspan=2)
spacing5.grid(column=2, rowspan=2)
#End search frame #End search frame
#Output frame #Output frame
frame3 = Frame(root) frame3 = Frame(root)
keyCount = StringVar() keyCount = StringVar()
infoText = Label(frame3, textvariable=keyCount) infoText = Label(frame3, textvariable=keyCount, font=("", 11 , "bold"))
infoText.grid() infoText.grid(column=1)
scrollbar = Scrollbar(frame3) scrollbar = Scrollbar(frame3)
outBox = Text(frame3, height=30, width=80, state="disabled", yscrollcommand=scrollbar.set) outBox = Text(frame3, height=20, width=70, state="disabled", yscrollcommand=scrollbar.set)
outBox.grid(row=1) outBox.grid(row=1, column=1)
scrollbar.grid(row=1, column=1, sticky=N+S) scrollbar.grid(row=1, column=2, sticky=N+S)
scrollbar.config(command=outBox.yview) scrollbar.config(command=outBox.yview)
closeButton = Button(frame3, text="Close", command=kill) closeButton = Button(frame3, height=2, width=15, text="Close", font=("", 11 , "bold"), command=kill)
closeButton.grid(row=2) closeButton.grid(row=2, column=1, pady=10)
spacing6 = Frame(frame3, width=10)
spacing7 = Frame(frame3, width=10)
spacing6.grid(column=0, rowspan=2)
spacing7.grid(column=3, rowspan=2)
#End output frame #End output frame
#Launches the GUI #Launches the GUI