tkinter - Basic Python Messagebox size change -


how change size of window message-box appears in? built box myself allow me change option "thanks".

here code far:

def messagewindow():     win = toplevel()     win.title('warning')     message = "this delete stuff"     label(win, text=message).pack()     button(win, text='thanks!', command=win.destroy).pack() 

you use geometry method set dimensions of window.

example:

win.geometry("500x500") 

Comments

Popular posts from this blog

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -