def button_optimazeClicked(self):
s = 'graph.txt'
tt = graph.Graph(self.day.currentText(), self.time.currentText())
tt.list_node = tt.read_nodes_graph(s)
tt.schedule = tt.read_schedule()
a = tt.optimization_graph()
for i in range(len(self.label)):
try:
self.update(a[i], i)
except IndexError:
self.update('', i)
if len(a) == 0:
self.update("?????? ? ?????? ????? ???", 2)
评论列表
文章目录