Skip to content

Commit

Permalink
Extend buttons to 2 more rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelby Thomas committed Apr 14, 2020
1 parent 1ccbd3f commit e0c1bd9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions searchMatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,28 @@ def analyze():
else:
btn = PushButton(button_box_r6, align="left",width="10",text=k,pady=resolution[rt]['button_pady'])
btn.bg ="#F84446"
elif(counter < 28):
if k in rdict:
if(platform != 'win32'):
btn = PushButton(button_box_r7, align="left",width="10",text=str("█"+k),command=pval,pady=resolution[rt]['button_pady'] )
else:
btn = PushButton(button_box_r7, align="left",width="10",text=k,command=pval,pady=resolution[rt]['button_pady'] )
btn.update_command(pval, [k,lbox_list[0]])
btn.bg ="#9EF844"
else:
btn = PushButton(button_box_r7, align="left",width="10",text=k,pady=resolution[rt]['button_pady'])
btn.bg ="#F84446"
elif(counter < 32):
if k in rdict:
if(platform != 'win32'):
btn = PushButton(button_box_r8, align="left",width="10",text=str("█"+k),command=pval,pady=resolution[rt]['button_pady'] )
else:
btn = PushButton(button_box_r8, align="left",width="10",text=k,command=pval,pady=resolution[rt]['button_pady'] )
btn.update_command(pval, [k,lbox_list[0]])
btn.bg ="#9EF844"
else:
btn = PushButton(button_box_r8, align="left",width="10",text=k,pady=resolution[rt]['button_pady'])
btn.bg ="#F84446"
counter += 1
btn_list.append(btn)

Expand All @@ -295,6 +317,8 @@ def analyze():
button_box_r4 = Box(app, align="top", border=True)
button_box_r5 = Box(app, align="top", border=True)
button_box_r6 = Box(app, align="top", border=True)
button_box_r7 = Box(app, align="top", border=True)
button_box_r8 = Box(app, align="top", border=True)

form_box = Box(app,width="fill", border=True)
form_box.text_size= resolution[rt]['form_box']
Expand Down

0 comments on commit e0c1bd9

Please sign in to comment.