Yahoo Search Búsqueda en la Web

Resultado de búsqueda

  1. 27 de jun. de 2009 · Here's the basic syntax: messagebox.Function_Name(title, message [, options]) The message boxes are modal and will return a subset of (True, False, OK, None, Yes, No) based on the user’s selection. So to get the value of message box you just need to store the value in a variable. An example is given below:

  2. 27 de ago. de 2016 · Unfortunately it did not work for me in Python 3.4.4 (even after changing MessageBox for the newer messagebox capitalization). And when I did r.option_add('*font', 'Courier 12') it changed all the fonts except the messagebox fonts. –

  3. 3 de jul. de 2019 · In python, I am attempting the change the width of the tkinter messagebox window so that text can fit on one line. import tkinter as tk. from tkinter import messagebox. root = tk.Tk() messagebox.showinfo("info","this information goes beyond the width of the messagebox") root.mainloop() python. tkinter.

  4. 29 de jun. de 2014 · By setting the parent argument to topWindow for the showinfo command the above problem can be solved. By doing this the tkinter messagebox's master will be set to the topWindow. Therefore, the root window will not be shown above the topWindow. –

  5. Yes, we can set a custom icon for the title bar in tkinter. Code: import tkinter as tk. window = tk.Tk() # change title bar icon. window.iconbitmap('book_2.ico') window.mainloop() NOTE: Use .ico files with the iconbitmap() function. If you set a custom icon for the root window, then this same icon will be set as the title bar icon for all other ...

  6. 18 de dic. de 2018 · Here is a drop-in replacement for messagebox.askokcancel. Mike - SMT's answer doesn't pause execution nor return an answer, and the second example requires refactoring your program further, so I modified his first example to be used without changing standard tkinter code at all (except calling my function, and adding the geometry option which my function accepts):

  7. 31 de jul. de 2018 · I'm pretty sure there's no way to do this; calling bell() whenever a Message is displayed is part of Tcl/Tk, not something Python/Tkinter adds on top of it. 1. But you can always use SimpleDialog to build a modal dialog that looks just like MessageBox but isn't one, and doesn't sound like one. 2.

  8. 6 de dic. de 2017 · from tkinter import messagebox messagebox.showerror("Title", "Message") check here for more info.

  9. 21 de sept. de 2008 · be the protocol method's second argument. Here's a working example, tested on Windows 7 & 10: # Python 3. import tkinter. import tkinter.scrolledtext as scrolledtext. root = tkinter.Tk() # make the top right close button minimize (iconify) the main window. root.protocol("WM_DELETE_WINDOW", root.iconify) # make Esc exit the program.

  10. 15 de ago. de 2021 · I've written a password generator with Tkinter and have set a messagebox that pops-up when the data for the website is already in the database. Is there an option that allows me to copy the text from the pop-up? Because these passwords are really long.