Added Icon to Window
This commit is contained in:
@@ -36,10 +36,12 @@ else:
|
|||||||
base_path = os.path.dirname(os.path.abspath(__file__))
|
base_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
os.chdir(base_path) # Change the current working directory to the base path
|
os.chdir(base_path) # Change the current working directory to the base path
|
||||||
|
|
||||||
|
image_foler = 'img'
|
||||||
instrumentalModels_dir = os.path.join(base_path, 'models')
|
instrumentalModels_dir = os.path.join(base_path, 'models')
|
||||||
stackedModels_dir = os.path.join(base_path, 'models')
|
stackedModels_dir = os.path.join(base_path, 'models')
|
||||||
banner_path = os.path.join(base_path, 'img', 'UVR-banner.png')
|
banner_path = os.path.join(base_path, image_foler, 'UVR-banner.png')
|
||||||
refresh_path = os.path.join(base_path, 'img', 'refresh.png')
|
refresh_path = os.path.join(base_path, image_foler, 'refresh.png')
|
||||||
|
icon_path = os.path.join(base_path, image_foler, 'UVR-icon.ico')
|
||||||
DEFAULT_DATA = {
|
DEFAULT_DATA = {
|
||||||
'exportPath': '',
|
'exportPath': '',
|
||||||
'inputPaths': [],
|
'inputPaths': [],
|
||||||
@@ -266,6 +268,7 @@ class MainWindow(TkinterDnD.Tk):
|
|||||||
ypad=int(self.winfo_screenheight()/2 - height/2 - 30)))
|
ypad=int(self.winfo_screenheight()/2 - height/2 - 30)))
|
||||||
self.configure(bg='#000000') # Set background color to black
|
self.configure(bg='#000000') # Set background color to black
|
||||||
self.protocol("WM_DELETE_WINDOW", self.save_values)
|
self.protocol("WM_DELETE_WINDOW", self.save_values)
|
||||||
|
self.iconbitmap(icon_path)
|
||||||
self.resizable(False, False)
|
self.resizable(False, False)
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user