How to set specific color for certain symbols like ,#,etc ‘ example if I type “” it’s color should be blue and other stay remain same. typedecker sir i am binding you function like this but this is not working Answer The same procedure as followed in the case of words here by me, can be followed, the only change
Tag: tkinter
How to add histogram from dataframe in tkinter
I am new to Tkinter and am working on a GUI based on ML. I want to add a histogram plot from a dataframe into Tkinter and am stuck. This is the histogram plot: This is part of my code Pls suggest the correction. Answer You can save the histogram to an image and then open it and display it
How run an mp4 in Tkinter?
I have been trying to run an mp4 in Tkinter and have been getting an error message about a couple line errors in –main–.py, and runpy.py. I’m a newbie and this is confusing me because I’ve been spending hours trying to fix this. I am also having a problem in the file path for my video, so help on that
Tkinter function creates variable that can’t be added to list with .get() from entry
First off, I am aware that there are many questions out there with .get() not properly working and I have read through many of them. My issue is that my program has a button that every time it is pressed, it adds a new entry box for a new Player to be added, then I then want to create a
Generating a menu for a tkinter window doesn’t work using a function but works just fine if the steps are executed on a python console
I’m trying to generate a set of menus for a program from a dictionary using a more complex version of the function build_menu below. The function detects what it is supposed to do correctly (detects the structure of submenus and menu entries as desired) but it fails to add them to the window. Things I have tried: running the code
Python-Tkinter: How do I update a whole segment?
I have a segment in my GUI that creates a varying number of labels using a for-loop. Furthermore, I have a button that’s supposed to delete all of these labels and recall the for loop with new information. However, I can’t figure out how to make my button do that. Specifically do both of these actions together. I have tried
Adding a header line to a scrollable canvas with weights
I’m trying get a list of .xlsm files from a folder, and generate a scrollable canvas from which the tabs needed for import can be selected manually using the check buttons (all having the same tab format e.g. tab1, tab2, tab3, tab4). The major issue I’m having is getting weights to work correctly for the headers in relation to their
Tkinter Treeview scrollbar under the column labels
I am trying to insert a vertical scrollbar in a treeview such that it is displayed under the columns labels of the treeview and not besides/next to the labels. I’ve tried adding pady in the scrollbar widget yet that still does not place it under the columns labels (just creates an offset from the top). Any help is greatly appreciated
How can I convert a return statement into something that can be used by Tkinter [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. This post was edited and submitted for review 7 months ago and failed to reopen the post: Original close reason(s) were not resolved Improve this question I am making
Why am I receiving a error when trying to use tkinter to make multiple windows gui?
I am trying to create multiple window GUI application but can’t open window. i received an error. when we run both window code separately it’s run. I don’t know why this error occurs. can anyone resolve this problem. and help me to run multiple frames in one window. This is my first window code This is my Second window code