tkinter

Tkinter binding button press to functions

Tkinter binding button press to functions Question: I have a UI with an entry, and a button that deploys multiple functions using said entry. ent = tk.Entry(frm_top, textvariable=entry_input) btn_confirm = tk.Button(frm_inner_bot, text="Confirm", width=25, height=2, command=lambda: [main.save_template(entry_input.get(),filedialog.askdirectory()),update_main_window(label, listbox), create_template_window.destroy()]) I would like to be able to press from the entry and do the same functions as …

Total answers: 2

TKinter – Column width = 0 leaves yellow pixels

TKinter – Column width = 0 leaves yellow pixels Question: I am trying to only show certain columns when pressing one of the buttons on the right side, for that reason I implemented to hide the other columns by reducing their column width to 0. While this works for hiding the columns, it leaves yellow …

Total answers: 1

How do i make a customtkinter button run a function without freezing

How do i make a customtkinter button run a function without freezing Question: right now am trying to make a customtkinter GUI for my code the problem that am running in which I cannot really find an answer to it is as follows, I am trying to make a button run a specific bit of …

Total answers: 1

Python Tkinter Button Not Showing Up

Python Tkinter Button Not Showing Up Question: I used Tkinter Designer by Parth Jadhav to generate the UI of it, I have gotten no error but the button still doesnt show up The Code: from tkinter import * import new_post from pathlib import Path from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage def home_page_screen(): …

Total answers: 1

Tkinter ScrolledText search() function not working beyond the first line

Tkinter ScrolledText search() function not working beyond the first line Question: I’m creating a tkinter application that highlights misspelled words in a ScrolledText() widget. To find the index of the misspelled word I use the check() function. However, when I move to a new line in the scrolled text, the index returned by check() is …

Total answers: 1

Get the word around the insertion point – Tkinter Text

Get the word around the insertion point – Tkinter Text Question: So I want to get the word the user’s insertion point is "within". I’ve been trying multiple methods, such as my most recent being: insert_idx = TEXT_EDITOR.index(INSERT) word_start_index = TEXT_EDITOR.search(r"b", insert_idx, backwards=True, regexp=True) word_end_index = TEXT_EDITOR.search(r"b", insert_idx, regexp=True) word = "" print(word_start_index, word_end_index) if …

Total answers: 1

Can't make Radiobuttons pre-selected with tkinter

Can't make Radiobuttons pre-selected with tkinter Question: sadly I didn’t found any solution to my problem I realy hope U guys can maybe help me. I have a main.py and, for test purposes, a test.py. In the main I only create the window for my programm and the widgets come from the test.py, the thing …

Total answers: 1

Setting the default values in RangeSlider

Setting the default values in RangeSlider Question: I am looking for a way to set the initial, default values to the RangeSlider, which should correspond to the slider handles being set at those positions when the GUI is initialized. For instance, I set the range of the slider from 0 to 100, but would like …

Total answers: 1

sorting the treeview tkinter column without clicking on the column header

sorting the treeview tkinter column without clicking on the column header Question: I am writing a program where there is a customer record log. The program has the ability to enter the time and the client. This data is stored in the database. I can’t sort the time without clicking on the column header. I …

Total answers: 1