Pop-up message window - Tkinter tutorial Python 3.4 part 12

preview_player
Показать описание

Here, we cover how to add a pop-up messaging system to our GUI program.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

Thank you so much for making these tutorials! Your teaching style (learning through projects + great explanations) is awesome!!

daliaabdou
Автор

Hey Sentdex!
Why haven't you just used below method ?
settings", command = lambda: tk.messagebox.showinfo (title="", message="")
Great series man ! I'm really appreciating your work ! Thanks for all the movies.

michanajdek
Автор

So,  I tried to used this as described and I am getting a NULL main windows error. I think this is due to that I am trying to use it as it's own entity. I have no main window in my code, I only wanted a warning popup. Do you have any suggestions? Thanks!

nicktumi
Автор

I am using for an delete, append, do nothing warning. When you call the popupmsg..how do you pause the rest of the code from advancing til selection is made?

jarlink
Автор

Which class represnts the pop up message?

AkashKumar-ziub
Автор

Hello,
How can you make 3 windows, for example first window what is your name?
user press next, second window, gender question, user press next, third window, do you love coding, user choices an answer. My question how can you create 3 window and making sure to close previous window before proceeding to the next window

heiismail
Автор

When I run it in a while loop, instead of covering the whole window it just stacks over each other. I want it to open randomly so that it can cover the whole screen as it was in Windows XP. How can I do it?

jatinverma
Автор

def popupmsg(msg): # Mini Tk instance
popup = tk.Tk()

def leavemini():
popup.destroy()

popup.wm_title('!')
label = ttk.Label(popup, txt = msg, font = NORM_FONT)
label.pack(side = 'top', fill = 'x', pady = 5)

button1 = ttk.Button(popup, text = 'I''m a pop up Rawwwrrr', command = leavemini)
button1.pack()
popup.mainloop()

filemenu.add_command(label = 'Save settings', command = lambda: popupmsg('Pop Up Message Title')) # Pops text to the screen
##

sentdex I can not get the passed text or the button to appear. Could you please assist me with understanding why this does not work?

rutgerolsen
Автор

I am trying to use this pop up message method as part of a simple registration system I am making. I have buttons implemented as in your previous tutorials which allow me to go from frame to frame. What I am struggling with is for example, when a user registers, I wish to display this popupmsg, saying they have registered, then when ok is clicked on popupmsg, redirect them to the login frame. I am struggling to understand how to do this, any advice?

robdelaney
Автор

How can your app run so snappily? It is very laggy on my PC, Linux or Windows 7.

nguyentnhoang
Автор

Hi Harrison,
Could you please tell me if this code works with Python 3.6? Do you have this code available somewhere? Thank you very much.

malulo
Автор

please tell me i am working in gui app. how to display logs on desktop, ,

venkateshyalagala
Автор

I want to pass my result (output) in pop up windows how will i do that?

huzaifasunny
Автор

command=quit, doesn't do anything.

iClaWnN