can i use tkinter library in my paid python software i was gonna use Qtpy , but someone told me that it is not free to use for a paid software is it the same for tkinter ? also how to check if i can use a library for free in my paid software because ..
Somehow,.. I am not able to get the value from my slider… Obviously the behavior of the slider is influenced by the way (a function) it’s put on the ‘root… What do I have to change? ”’from tkinter import * root = Tk() root.geometry("100×140") def put_a_slider_later(): slider = Scale(root, from_=0, to=10) slider.grid(column=1, row = 0, ..
So i am making a program with tkinter and i am trying to change the color of the scrollbar, but it doesn’t seem to change! I would love some help on the issue if possible(By the way i have tries to put the bg="blue" everywhere but it isn’t working for me) class ScrollableFrame(Frame): def __init__(self, ..
I have a problem that i really cannot solve. It’s been hours of searching. I have this simple tkinter window with one combobox, one figure on a FigureCanvasTkAgg and a Matplotlib TextBox. The thing is that i want to print something on console when i press Enter (on the TextBox). I do this by using ..
I’m making a project using tkinter but am having some trouble with using the grid method i’m trying to place all the pictures on the right side of the screen,but its just not working here is the code i’ve written: lemon_picture.grid(row=0,column=10,sticky=W) melon_picture.grid(row=1,column=10,sticky=W) DragonFruit_picture.grid(row=2,column=10,sticky=W) And here’s the output i get: https://i.stack.imgur.com/GV1kn.png As far as i’ve tried ..
My normal script is called start.py The code is this: inp = input("Select:") if inp == ‘1’: print("1") elif inp == ‘2’: print("2") else: print("error") now I got a tkinter window that I want to start with the input script together. Now my code looks like this: os.system("python tkinterwindow.py") inp = input("Select:") if inp == ..
I have this Tkinter code is_flag1 = True is_flag2 = False def xyz(intVar): if intVar.get() == 1: #change… else: #change… var_checkbutton1 = tk.IntVar() var_checkbutton2 = tk.IntVar() tk.Checkbutton(master, text="flag1", variable=var_checkbutton1, onvalue=1, offvalue=0, command=xyz).pack() tk.Checkbutton(master, text="flag2", variable=var_checkbutton2, onvalue=1, offvalue=0, command=xyz).pack() I want to make xyz() that change is_flag1 when I click on checkbutton flag1 or is_flag2 when ..
my output screen is blank. Don’t know much about tkinter, please resolve my problem. Source: Python..
On Python Tkinter I have the following code for creating a Menu with only 2 menu items: my_menu = Menu(root, tearoff=False) my_menu.add_command(label="Show details", command=whatever) my_menu.add_command(label="Delete me", command=something) Now I want to add an If Statement to check if the menu item: Delete me exists in menu or not. If exists, delete that menu item (like ..
I’ve created a command where it reads the elements of a text file, and for each element in that text file it creates a button. for element in myfile: button=Button(root, text="hi").pack() i want to assign to each button a specific value (like if i press one specific button something will appear), but im getting the ..