Category : tkinter-canvas

I have Multiple CSV file. these files used to populate multiple option on right clicked. with open(r’C:UsersDesktopCheck-In RevisionApp_DataObjectTypeSubMenu.csv’, mode=’r’) as csv_file: csv_reader = csv.DictReader(csv_file) for row in csv_reader: subMenuArray.append(row[‘ObjectTypeSubMenu’]) with open(r’C:UsersDesktopCheck-In RevisionApp_DataPop_up.csv’, mode=’r’) as csv_file: csv_reader1 = csv.DictReader(csv_file) for row in csv_reader1: submenu = tk.Menu(self.canvas.aMenu) submenuLevel1 = tk.Menu(self.canvas.aMenu, tearoff= 0) self.canvas.aMenu.add_cascade(label=row[‘ID’], menu=submenu) row_values = list(row.values()) ..

Read more

guys, i’m coding a program to get data from chemical equilibrium reaction and plot it in tkinter using the following code: f = Figure(figsize=(5, 4), dpi=100) PLT = f.add_subplot(111) if qdados == 1: PLT.plot(points[0], points[1], label=f'{specie[0]}’, color=’blue’) if ‘T’ in specie: f.supylabel("Temperatura") if ‘T’ not in specie: f.supylabel("Moles") f.suptitle(‘CHON + HON’) f.supxlabel("phi") It’s not necessary ..

Read more