1
- # from tkinter import
1
+ import os
2
2
import tkinter as tk
3
3
from copy import deepcopy
4
4
@@ -144,7 +144,6 @@ def set_reference(
144
144
145
145
skipper = {}
146
146
147
- desired_size = 700
148
147
radius = max (int (desired_size / 100 ), 1 )
149
148
150
149
points = {}
@@ -153,6 +152,8 @@ def set_reference(
153
152
transformation = None
154
153
155
154
window = tk .Tk ()
155
+ window .title ("Norfair - Set Reference Coordinates" )
156
+ window .configure (bg = "LightSkyBlue1" )
156
157
157
158
frame_options = tk .Frame ()
158
159
frame_images = tk .Frame ()
@@ -579,6 +580,19 @@ def reference_coord_chosen_in_reference(event):
579
580
"current_frame_label" : None ,
580
581
"path" : reference ,
581
582
}
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" )
582
596
583
597
###### MAKE SUBBLOCK FOR TITLE
584
598
frame_options_title = tk .Frame (master = frame_options )
0 commit comments