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

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -