metricFrame=ttk.Frame(rankedFrame,style='Test.TFrame',height=200,width=frameWidth)# Frame for each metric, should cover 80% of the window and stack vertically
metricFrame=ttk.Frame(rankedFrame,style='Test.TFrame',height=200,width=frameWidth)# Frame for each metric, should cover 80% of the window and stack vertically
metricFrame.grid(padx=10,pady=10,sticky="nsew")
metricFrame.grid(padx=10,pady=10,sticky="nsew")
metricFrame.grid_columnconfigure(0,weight=1)
rowIndex+=1# Increment the row index for the next frame
rowIndex+=1# Increment the row index for the next frame
ttk.Label(metricFrame,text=f"Metric Name: {metricName}",style="Test.TLabel").grid(row=1,column=0,sticky="nw")# First label = Metric id and description
ttk.Label(metricFrame,text=f"Metric Name: {metricName}",style="Test.TLabel").grid(row=1,column=0,sticky="nw")# First label = Metric id and description
ttk.Label(metricFrame,text=f"Metric value: {metricValue}",style="Test.TLabel",wraplength=0.3*frameWidth).grid(row=2,column=0,sticky="nw")# First label = Metric id and description
ttk.Label(metricFrame,text=f"Metric value: {metricValue}",style="Test.TLabel",wraplength=0.5*frameWidth).grid(row=2,column=0,sticky="nw")# First label = Metric id and description
ttk.Label(metricFrame,text=f"Number of associated components: {amountOFComponents}",style="Test.TLabel").grid(row=1,column=2,sticky="n")# Second label = Number of associated components in both diagrams
ttk.Label(metricFrame,text=f"Number of associated components: {amountOFComponents}",style="Test.TLabel").grid(row=1,column=2,sticky="n")# Second label = Number of associated components in both diagrams