messagebox

prng,python, tkinter,need to change picture

prng,python, tkinter,need to change picture Question: I ran into this problem and don’t know how to solve it. When I press the "generate" button(self.gen), my picture 11 changes to picture 22. BUT I need the image 11 to NOT change when the button is clicked and an error occurs(messagebox.showerror pops up) OR so that after …

Total answers: 1

Python Search function in .csv using lists

Python Search function in .csv using lists Question: I have a .csv file divided in four different columns, and I would write a search function in python that gives to me the print of a particular line of the document, but to do that I made some lists to get a thickest search…that’s because if …

Total answers: 2

How do you add an error alert then return to main function within same loop

How do you add an error alert then return to main function within same loop Question: How do you return to user input to try again in tkinter after the user searches for a value in excel that is not found whereby an error pop up is displayed? In my submit function below it works …

Total answers: 2

Tkinter message box pops up before other actions

Tkinter message box pops up before other actions Question: I’m struggling with figuring out how to make the messagebox pop up at the right moment. It always seems to pop up before the window updates to show what I want it to. Here’s an example; I want the button’s text to update to 3 before …

Total answers: 2

Python PyQt5: How to show an error message with PyQt5

Python PyQt5: How to show an error message with PyQt5 Question: In normal Python (3.x) we always use showerror() from the tkinter module to display an error message but what should I do in PyQt5 to display exactly the same message type as well? Asked By: Ramón Wilhelm || Source Answers: The following should work: …

Total answers: 6

Change words on tkinter Messagebox buttons

Change words on tkinter Messagebox buttons Question: I’m using tkinter’s “askokcancel” message box to warn the user, with a pop-up, of an irreversible action. from tkinter import Tk Tk().withdraw() from tkinter.messagebox import askokcancel askokcancel(“Warning”, “This will delete stuff”) I’d like to change the text of the ‘OK’ button (from ‘OK’) to something like ‘Delete’, to …

Total answers: 4