pygui: toolbar cleanup for buttonbar frames
This commit is contained in:
parent
4eaecd6a7b
commit
29fc5acb99
2 changed files with 74 additions and 129 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue