Python Forum
Adding timer on the Messagebox
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding timer on the Messagebox
#1
Hello Experts,
I would like to show some message on the Message Box, with a Timer on it. Messagebox will have 2 min countdown clock and after 2 min it will be close.

My code is here:
from tkinter import *
from tkinter import messagebox
window= Tk()

def wifiOnscript():
    messagebox.showinfo("Information!!", "This process may take up to 2 min. Please try after 2min...")

wifiOnButton=Button(window,text="WiFi-ON",command=wifiOnscript, height=1, width=22)
wifiOnButton.grid(row=2,column=0,padx=40, pady=10)

window.mainloop()
Please let me know how can I add the clock to my message box.
Thanks in advance.
Reply


Messages In This Thread
Adding timer on the Messagebox - by aniyanetworks - Feb-11-2019, 09:06 PM
RE: Adding timer on the Messagebox - by woooee - Feb-11-2019, 09:48 PM
RE: Adding timer on the Messagebox - by woooee - Feb-12-2019, 04:45 PM
RE: Adding timer on the Messagebox - by wuf - Feb-13-2019, 10:22 AM
RE: Adding timer on the Messagebox - by woooee - Feb-13-2019, 07:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding the timer, smiley face, and flags in Minesweeper. javesike1262 5 3,181 May-04-2021, 10:20 PM
Last Post: deanhystad
  Tkinter messagebox and using datetime/timedelta Kaltex 3 3,319 Apr-07-2021, 06:23 PM
Last Post: Yoriz
  [Tkinter] Sound from the tkinter.messagebox tedarencn 2 5,921 Jul-11-2020, 10:45 AM
Last Post: steve_shambles
  [Tkinter] Messagebox with playsound khandelwalbhanu 6 4,359 May-16-2020, 11:40 AM
Last Post: chesschaser
  [Tkinter] messagebox is not being executed please help erwinsiuda 2 2,284 Apr-02-2020, 01:56 AM
Last Post: Larz60+
  [Tkinter] passing data to messagebox kmusawi 0 1,805 Feb-18-2019, 01:51 AM
Last Post: kmusawi
  [Tkinter] Button widget gets stuck from using tkinter.messagebox? Nwb 2 3,897 Jun-20-2018, 02:21 PM
Last Post: Nwb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020