Skip to content

Commit

Permalink
Buttons in 'view beers' popup now display beer information on click e…
Browse files Browse the repository at this point in the history
…vent
  • Loading branch information
Christian Loizou committed Sep 14, 2020
1 parent 90e0779 commit 12ee86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ def displayBeerList(event=None):
# stylguide.map("morebeers.TButton", **mappings)

for beer in application.beers:
btn = Button(innerframe, text=beer.name, command=lambda: print(beer.name), width=50)
btn.configure(style='TLabel')
btn = Button(innerframe, text=beer.name, command=beer.displayInformation, width=40)
btn.configure(style='TLabel') # btn.configure(style="morebeers.TButton")
btn.pack(anchor='w', padx=5)

def loadTheme(themename, path="data/themes.json"):
Expand Down

0 comments on commit 12ee86d

Please sign in to comment.