Skip to content

Commit f160561

Browse files
committed
ERG model gui improved
1 parent a7fa7e4 commit f160561

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

main.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ def __init__(self):
678678
############################################
679679
# creating elements for optionsFrame #
680680
############################################
681-
self.ERGlabelRad = customtkinter.CTkLabel(master=self.ERGoptionsFrame,anchor=customtkinter.W,text='Способы задания графа:')
681+
self.ERGlabelRad = customtkinter.CTkLabel(master=self.ERGoptionsFrame,anchor=customtkinter.W,text='Способы задания графа:', height=25)
682682
self.ERGselected = IntVar(value=0)
683683
#radiobuttons
684684
self.ERGradProbability = customtkinter.CTkRadioButton(master=self.ERGoptionsFrame, text='Вероятностный граф',
@@ -699,32 +699,32 @@ def __init__(self):
699699
value=7, variable=self.ERGselected, command = lambda v=7: self.updateSliders(v))
700700
#plotting elements
701701
self.ERGlabelRad.grid(
702-
row=0, column=0, sticky="nswe", padx=10, pady=10)
702+
row=0, column=0, sticky="nswe", padx=10, pady=12)
703703
self.ERGradProbability.grid(
704-
row=1, column=0, sticky="nswe", padx=10, pady=10)
704+
row=1, column=0, sticky="nswe", padx=10, pady=12)
705705
self.ERGradConnectivity.grid(
706-
row=2, column=0, sticky="nswe", padx=10, pady=10)
706+
row=2, column=0, sticky="nswe", padx=10, pady=12)
707707
self.ERGradPlanarity.grid(
708-
row=3, column=0, sticky="nswe", padx=10, pady=10)
708+
row=3, column=0, sticky="nswe", padx=10, pady=12)
709709
self.ERGradNonTriangle.grid(
710-
row=4, column=0, sticky="nswe", padx=10, pady=10)
710+
row=4, column=0, sticky="nswe", padx=10, pady=12)
711711
self.ERGradTriangle.grid(
712-
row=5, column=0, sticky="nswe", padx=10, pady=10)
712+
row=5, column=0, sticky="nswe", padx=10, pady=12)
713713
self.ERGradFeudalFrag.grid(
714-
row=6, column=0, sticky="nswe", padx=10, pady=10)
714+
row=6, column=0, sticky="nswe", padx=10, pady=12)
715715
self.ERGradEmpire.grid(
716-
row=7, column=0, sticky="nswe", padx=10, pady=10)
716+
row=7, column=0, sticky="nswe", padx=10, pady=12)
717717
self.ERGradGiantConnComp.grid(
718-
row=8, column=0, sticky="nswe", padx=10, pady=10)
718+
row=8, column=0, sticky="nswe", padx=10, pady=12)
719719
##########################################
720720
# creating elements for inputFrame #
721721
##########################################
722722
self.vertexCount = 8
723723
self.propability = 0.5
724724
self.constantC = 1
725-
self.ERGlabelVertex = customtkinter.CTkLabel(master=self.ERGinputFrame,height=20,anchor=customtkinter.W,text=f"Количество вершин в графе: {self.vertexCount}")
726-
self.ERGlabelPropability = customtkinter.CTkLabel(master=self.ERGinputFrame,height=20,anchor=customtkinter.W,text=f"Вероятность появления ребер в графе: {self.propability}")
727-
self.ERGlabelCConst = customtkinter.CTkLabel(master=self.ERGinputFrame,height=20,anchor=customtkinter.W,text=f"Константа C: {self.constantC}")
725+
self.ERGlabelVertex = customtkinter.CTkLabel(master=self.ERGinputFrame,height=25,anchor=customtkinter.W,text=f"Количество вершин в графе: {self.vertexCount}")
726+
self.ERGlabelPropability = customtkinter.CTkLabel(master=self.ERGinputFrame,height=25,anchor=customtkinter.W,text=f"Вероятность появления ребер в графе: {self.propability}")
727+
self.ERGlabelCConst = customtkinter.CTkLabel(master=self.ERGinputFrame,height=25,anchor=customtkinter.W,text=f"Константа C: {self.constantC}")
728728
self.ERGsliderVertex = customtkinter.CTkSlider(master=self.ERGinputFrame,height=25,width=480,from_=1, to=26, number_of_steps=25)
729729
self.ERGsliderPropability = customtkinter.CTkSlider(master=self.ERGinputFrame,height=25,width=480,from_=0, to=1, number_of_steps=100)
730730
self.ERGsliderCConstant = customtkinter.CTkSlider(master=self.ERGinputFrame,height=25,width=480,from_=0, to=6.4, number_of_steps=640)
@@ -750,7 +750,7 @@ def __init__(self):
750750
############################################
751751
# creating elements for buttonsFrame #
752752
############################################
753-
self.ERGbtnCreate = customtkinter.CTkButton(master=self.ERGbuttonsFrame,text="Построить граф",height=60,width=480,command=ERG)
753+
self.ERGbtnCreate = customtkinter.CTkButton(master=self.ERGbuttonsFrame,text="Построить граф",height=50,width=480,command=ERG)
754754
#plotting elements
755755
self.ERGbtnCreate.grid(row=1, column=0, sticky="nswe", padx=10, pady=10)
756756

0 commit comments

Comments
 (0)