I am programming a GUI with tkinter that controls the communication to multiple motor controllers that are connected serially via RS485. I have a function (get_status()) that requests the status (motor running, motor position, position reached, …) of the controllers via pySerial and displays the uptated status on the UI. I want to run this funktion every second. The problem
Tag: tkinter
How to get custom slider in tkinter?
I want to get a custom slider in tkinter or another slider like this one slider The default tkinter slider isn’t very good so how it can be changed ? (even the simplest way to do it) I will appreciate if the thing is not done with a class because I did’nt put a single one in 300 lines of
Conversion app to display the date and result
I have created a currency conversion app as users need to input the currency from, to and the amount required. I have successfully retrieved the data from the API, when I click the button the result label was shown all the data below rather than the date and result of the currency’s conversion. How could I display the date and
How do I get hex codes to work with tkinter text boxes? The regular colors like “red”, “yellow” etc works. But not hex
OS: Windows 10 This is my “texter”, it is used to print letter for letter at certain speeds. It takes the text to print, and a text color as arguments. This works perfectly if i write – texter(“Hello there”, “red”) However it stops working and only prints white text when I do something like – texter(“Hello there”, “orange2”) And “orange2”
Search the data on the text file and Printing in GUI with Tkinter
I am writing a python program to search the data on the text file in GUI The search function normally gives the result (in CLI). I want to use it with Tkinter, but when I pull the input with the Tkinter Entry function, my search function does not work. Whatever I write, it outputs the data in the entire text
Why can’t I access tkinter objects after importing tkinter as something?
I’m following a simple tutorial, learning about the tkinter library. In the tutorial, they do this: I was told the above is not good practice so instead I did: However, later on in the code I have to do something like this: This gives me an error because I didn’t import ttk as its own module. I would assume something
how to get value from def function before
i got a problem to run the python, for example code in below, because the code not sure to see because i am beginner for this,and its too long too, i give the same problem on my code the problem is if i press the button for y1 not define so i writte the code but in my visual studio
File not landing in new directory created by askdirectory in tkinter
Firstly, thanks Carl_M! I will try to ask this question with more simple code. Using tkinker- the user is asked to select the directory and new subfolder. That works. Then browse for an exel file that will be modified as a df and sent to the new subfolder. That sort of works (thanks to Carl), but file doesn’t go to
Python Tkinter; Creating multiple labels without declaring each one individually. Is there a way to put this in a for loop?
To be more specific, I need to create 45 different labels that I can control the bg color of individually based on the user input. The project is a lottery, and each correct number the user gets needs to change it’s bg color. Is there a much shorter way to write this like putting it in a for loop ?
Connect two comboboxes via a dictionary (with the purpose to display male or female names in the combobox)
I have a combobox where I select the gender Male or Female. Then I have another combobox where now all the names of people are displayed (without distinction of gender). I would like to select Male from the first combobox and automatically display (without button) the Male names in the second combobox. The same thing for Female names. Thank you