1- # from tkinter import
1+ import os
22import tkinter as tk
33from copy import deepcopy
44
@@ -144,7 +144,6 @@ def set_reference(
144144
145145 skipper = {}
146146
147- desired_size = 700
148147 radius = max (int (desired_size / 100 ), 1 )
149148
150149 points = {}
@@ -153,6 +152,8 @@ def set_reference(
153152 transformation = None
154153
155154 window = tk .Tk ()
155+ window .title ("Norfair - Set Reference Coordinates" )
156+ window .configure (bg = "LightSkyBlue1" )
156157
157158 frame_options = tk .Frame ()
158159 frame_images = tk .Frame ()
@@ -579,6 +580,19 @@ def reference_coord_chosen_in_reference(event):
579580 "current_frame_label" : None ,
580581 "path" : reference ,
581582 }
583+ ######### MAKE SUBBLOCK FOR LOGO
584+
585+ frame_options_logo = tk .Frame (master = frame_options )
586+ image = Image .open (
587+ os .path .join (os .path .dirname (__file__ ), "../docs/img/logo-dark.png" )
588+ )
589+ image = image .resize ((300 , 70 ))
590+ image = ImageTk .PhotoImage (image )
591+
592+ image_label = tk .Label (frame_options_logo , image = image , width = 40 , height = 60 , bg = "LightSkyBlue1" )
593+
594+ image_label .pack (side = tk .TOP , fill = "both" , expand = "yes" )
595+ frame_options_logo .pack (side = tk .TOP , fill = "both" , expand = "yes" )
582596
583597 ###### MAKE SUBBLOCK FOR TITLE
584598 frame_options_title = tk .Frame (master = frame_options )
0 commit comments