@@ -150,12 +150,14 @@ def load_template():
150150
151151 def _create_fields (self , annotations : dict [str , type ], additional_values : dict , frame : ttk .Frame ):
152152 label_width = max (* map (len , annotations ), 15 ) - 2
153+ dpi_5 = dpi_scaled (5 )
154+ dpi_5h = dpi_5 // 2
153155
154156 for (k , v ) in annotations .items ():
155157 # Init widgets
156158 entry_types = self .convert_types (v )
157159 frame_annotated = ttk .Frame (frame )
158- frame_annotated .pack (fill = tk .BOTH , expand = True , pady = 5 )
160+ frame_annotated .pack (fill = tk .BOTH , expand = True , pady = dpi_5 )
159161 ttk .Label (frame_annotated , text = k , width = label_width ).pack (side = "left" )
160162
161163 # Storage widget with the tooltip for displaying
@@ -198,10 +200,10 @@ def _create_fields(self, annotations: dict[str, type], additional_values: dict,
198200 if not (any_filled and self .allow_save ):
199201 bnt_new_menu .configure (state = "disabled" )
200202
201- bnt_copy_paste .pack (side = "right" , padx = 2 )
202- bnt_edit .pack (side = "right" , padx = 2 )
203- bnt_new_menu .pack (side = "right" , padx = 2 )
204- combo .pack (fill = tk .X , side = "right" , expand = True , padx = 2 )
203+ bnt_copy_paste .pack (side = "right" , padx = dpi_5h )
204+ bnt_edit .pack (side = "right" , padx = dpi_5h )
205+ bnt_new_menu .pack (side = "right" , padx = dpi_5h )
206+ combo .pack (fill = tk .X , side = "right" , expand = True , padx = dpi_5h )
205207 self ._map [k ] = (w , entry_types )
206208
207209 def _fill_field_values (
0 commit comments