Questions tagged [tkinter-button]

Use this tag when you are referring to the tkinter button, created with the function tkinter.Button(). DON'T USE THIS TAG TO REFER TO ANY OTHER BUTTON.

346 questions
0
votes
1 answer

How to create a keyboard from tkinter buttons that stores the entered letter?

I am writing a python hangman code with tkinter interactive window, which includes a keyboard. I have created the keyboard, however I cannot figure out how to find out which keyboard key was pressed by the user and how to store it as a letter in a…
0
votes
0 answers

I have a "TypeError: 'float' object is not iterable" when I want to convert the second number in the float too

def pl(): num1=float(ent.get()) ent.delete(0, END) num2=float(ent.get()) result=sum(num1, num2) ent.insert(END, result) When I want to sum both of the numbers this error happens. It says I cannot convert…
0
votes
1 answer

Python Tkinter GUI, Take parameter from other button when it's clicked and use as an argument for other button

when add_button clicked choose_file function returns a path, how I can use this path if convert_button clicked? def choose_file(): filename = filedialog.askopenfilename(title="Open Images", …
Nuri
  • 1
  • 1
0
votes
1 answer

How to display chosen file path in entry box with Tkinter

I'm trying to have the user click on the "New Window" button to open a new window, and then click on the "Browse" button to choose a file. The file path should then be displayed in the Entry Box. My issue is that I can't get the file path to be…
Reactions
  • 3
  • 3
0
votes
1 answer

Tkinter get rid of the python icon in messagebox tkinter

How can I get rid of the Python (or matplotlib) icon when running this code? Even when I add icon='info', I still get the rocket with the python logo. Please check the photo in reference. from tkinter import * import tkinter as tk from tkinter…
0
votes
0 answers

How do you stop scripts from running without quitting the GUI?

I have made a GUI menu with options to start and shut down the python scripts. So far the start button, I am able to run multiple scripts with threading but for the Stop button function, I am still lost. import time import threading from threading…
Ashton
  • 1
  • 1
0
votes
0 answers

I want to get the information that the user is entering in the login page to the Application Page

class Login(tk.Frame): def __init__(self, parent, controller): def switch(): e_name.delete(0, 'end') e_password.delete(0, 'end') controller.show_frame("Registration") tk.Frame.__init__(self,…
0
votes
0 answers

Tkinter image buttons on same window not working

So my objective is to create a simple software that can open some websites (using the webbrowser module). I created the first window (Here the MainWin class), that displays the title (Website Access) and a big button containing an image, that leads…
0
votes
1 answer

Tkinter - Python 3.7: Switching between frames with each frame stored in different .py files

Edited version: I am new to Tkinter and would like to perform a page switching functionality similar to the answer to this question (Switch between two frames in tkinter?). However, rather than have all of my pages in one single .py file, I would…
Toboggan
  • 37
  • 4
0
votes
1 answer

Moving text from a button to another using python tkinter

def move(sp, t): if sp == "eightA": sps = eightA if t == "sixA": st = sixA if st == " ": # target is empty sps["text"] = " " st["text"] = str(sps["text"]) Hello Everyone, Im trying to make this…
0
votes
0 answers

how to make the running function like reading the text to stop reading it by using other function to stop it?

I have made a function to read the text using pyttsx3 and i have created a stop button using tkinter so when i click it , it will call another function which will stop the reading function to stop reading the text i am not able to do it , i used…
Noriz
  • 53
  • 6
0
votes
1 answer

How to switch between two tkinter frames

I am trying to switch and display two frames in tkinter using the codes below but I am not succeeding. I have attached an image of what the code is displaying. from tkinter import* root= Tk() root.title("HOSPITAL MANAGEMENT SYSTEM") …
0
votes
0 answers

How do I write to a file on button click before the application closes?

I'm trying to implement a function that reads an integer from a text file and the contents of a tkinter entry box, combines them, and displays the result of the combination in a tkinter label. Then it should write the result of the combination in a…
0
votes
0 answers

Image Not Displaying Inside function Python Tkinter

This is my code. I was trying the Standard Calculator but the mic image button is not at all displayed. I have not completed my entire code. Standard calculator body is given in def Standard(). Please give me a solution. The icon of the standard…
0
votes
1 answer

How do I delete a text content when I press a botton using tkinter?

I am creating a code that adds numbers or words to a text box and then switches the numbers or words around. I want to create a clear button that deletes all the content in the textbox and when the user presses one of the other buttons it appears…