Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit e0e1a45

Browse files
author
Samuel Sebastian Schulze
committed
add logo next to headline
1 parent dabedaf commit e0e1a45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

timesync.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import os
77
import tkinter as gui
88
from tkinter import messagebox
9+
from tkinter import PhotoImage
910
import subprocess
1011
import platformdirs
1112
import languagesetup # import local file "languagesetup.py"
@@ -178,7 +179,9 @@ def syncstart():
178179

179180
#Headline (Title)
180181
print("Set headline...")
181-
headline = gui.Label(GUI, text="Date & Time Syncronizer", font=("Liberation Serif", 13))
182+
img_path = str(run_path + "/images/icon.png")
183+
img = gui.PhotoImage(file=img_path).subsample(32)
184+
headline = gui.Label(GUI, text="Date & Time Syncronizer", font=("Liberation Serif", 13), image=img, compound="right")
182185
headline.pack(expand=True, fill="x")
183186

184187
#Space between headline and buttons

0 commit comments

Comments
 (0)