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()) ..
Category : tkinter-canvas
I want to make radiobutton transparent on canvas image to make it look good, I tried passing lots of option parameters to radiobutton to somehow make it look better but nothing works. Here is the code I am working with… from tkinter import * from tkinter import ttk from tkinter.ttk import * from PIL import ..
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 ..
I’ve started learning Tkinter on Python few weeks ago and wanted to create a Guess Game. But unfortunately I ran into a problem, with this code the text for the rules ( in the function Rules; text=’Here are the rules… ) doesn’t appear on the window ( rule_window). window = Tk() window.title("Guessing Game") welcome = ..
I am taking data from a CCD while moving a stage and displaying the live updating image from the CCD. The live plot works, but as soon as I hit the start button to start the stage the whole GUI freezes. I want to get the live image from the CCD while the stage is ..
I am newbie in Python using tkinter and I have a problem that I cant solve.[Digital time][1] I want to put digital time in the the upper right corner of my application (Please see the picture). I tried to search on net on how to create a digital time but it is on global root ..
I am still pretty new to tkinter so I decided to try to make a simple rip off discord app, I am having trouble when a new message is sent. So, when the messages start going off the page the most recent message can’t be seen until you send another one and I don’t know ..
I wanted to get a little square to move to the left 10 pixels every 3 seconds and my code is below. I’m not sure why it remains stationary. Some help would be greatly apprecaited! import tkinter as tk import time root = tk.Tk() WIDTH = HEIGHT = 400 x1 = y1 = WIDTH / ..
I want to create a window that allows entering one-to-many fields for the file transfer. I created a Scrollable Frame and I am adding Entry-Text pairs in runtime. If I click the button for the first time, everything goes well. After the second time, nothing happens on the UI side. It works perfectly after the ..
I’m designing the main game area of a game similar to fruit ninja. I’m trying to make the laser animation effects show once he user press the spacebar but disappear once the player let go of it. Basically the laser will only appear while the user is holding the space bar. And the fruit will ..
Recent Comments