I can’t set the value and, after, run my function with my select radio. Someone can help me? When i click the button for show me the functions "rendafixa" and "rendavariavel", nothing happens. but it was supposed to show me the "funfou rf" or "funfou rv". How can i fix this? from tkinter import * ..
Category : tkinter

By default when we create a simple window on macOS using tkinter it looks like the window on the left. I’m trying to create a window that looks like the one on the right. I’ve tried Googling this but I can’t seem to find a solution. I assume it is because I am not using ..
My plan was to create a combobox with the names of individuals, so that user can select a name from the set and enter its points into the Entry box. I tried to do this, but my drop-down list does not show a list of names in the Individual set, but just all 5 sets: ..
My plan was to create a combobox with the names of individuals, so that user can select a name from the set and enter its points into the Entry box. I tried to do this, but my drop-down list does not show a list of names in the Individual set, but just all 5 sets: ..
I have two functions CheckOs and _get_keyfile as below: 1:CheckOs(without considering Mac) def CheckOs(): if os.name == ‘nt’: return "Windows" return "Linux" 2:_get_keyfile def _get_keyfile(stdscr): keyfile = Tk() keyfile.withdraw() if CheckOs() == "Windows": keyfile.KeyfileName = filedialog.askopenfilename(initialdir="/", title="Selecta Key File",filetypes=(("Anfu Keyfiles", "*.anky"),)) #if not windows then linux,IGNOREEEEEEEEE MAC keyfile.KeyfileName = filedialog.askopenfilename(initialdir="/home", title="Select a Key File",filetypes=(("Anfu Keyfiles", ..
Hi I am trying to add console output to a window created using PySimpleGui , It works Perfectly until I add html test-runner , can anyone suggest a method to use both of them at once import unittest import PySimpleGUI as sg class Sampletestclass(unittest.TestCase): def test_1_State(self): self.assertTrue(2 > 9) print(‘1’) def test_2_State(self): print("2") sg.theme("DarkBlue3") layout ..
Hi I am trying to add console output to a window created using PySimpleGui , It works Perfectly until I add html test-runner , can anyone suggest a method to use both of them at once import unittest import PySimpleGUI as sg class Sampletestclass(unittest.TestCase): def test_1_State(self): self.assertTrue(2 > 9) print(‘1’) def test_2_State(self): print("2") sg.theme("DarkBlue3") layout ..
I have a treeview that we can add to, modify, or delete items, like shown in this picture Treeview The problem is after closing the window, the changes in my treeview are lost and it goes back to its first display. The functions that I used are : #delete the treeview products def delete_product(): x ..
I am trying to create this app so that it finds the streamers views, if it doesn’t find the XPATH I want it to output "Streamer is offline" but it just outputs "Streamer is offline" even for online streamers. Also, when typing a new streamer the label does not overwrite, rather creates a new line. ..
optsv= StringVar() VILLAGE_NA=StringVar() options=[] cursor.execute("SELECT VILLAGE_NA FROM Sheet1") idv =cursor.fetchall() for i in idv: options.append(str(i[0])) def lookupvillage(event): VILLAGE_NA.set(combov.get()) options=combov.get() query="SELECT * FROM Sheet1 WHERE id=%s" cursor.execute(query) rowsv=cursor.fetchall() print(rowsv) Label(wrapper, text="Select Village").grid(row=3, column=0, padx=10, pady=10) combov=ttk.Combobox(wrapper, textvariable=optsv, width=30) combov[‘values’]=options combov.grid(row=3, column=1,padx=50, pady=50) combov.bind("<<ComboboxSelected>>", lookupvillage) lbl4=Label(wrapper2, text="Village") lbl4.grid(row=0, column=6, padx=10, pady=10) ent4=Entry(wrapper2, textvariable=VILLAGE_NA) ent4.grid(row=0, column=7, padx=10, pady=10) ..
Recent Comments