pygui: toolbar cleanup for buttonbar frames

This commit is contained in:
Blake Harnden 2020-05-15 23:23:07 -07:00
parent 4eaecd6a7b
commit 29fc5acb99
2 changed files with 74 additions and 129 deletions

View file

@ -1,7 +1,7 @@
import logging
import math
import tkinter as tk
from tkinter import font, ttk
from tkinter import PhotoImage, font, ttk
from tkinter.ttk import Progressbar
import grpc
@ -160,5 +160,8 @@ class Application(ttk.Frame):
else:
self.toolbar.set_design()
def get_icon(self, image_enum: ImageEnum, width: int) -> PhotoImage:
return Images.get(image_enum, int(width * self.app_scale))
def close(self) -> None:
self.master.destroy()