diff options
author | pux <pux@pux.dom> | 2020-05-05 04:55:05 +0200 |
---|---|---|
committer | pux <pux@pux.dom> | 2020-05-05 04:55:05 +0200 |
commit | c5ef946dffc7a8962d48e928b63d718dd4de3d75 (patch) | |
tree | 5043acdb2f001df53842eaed4290de16c728f545 | |
parent | 0362cc36550eed6f919d7d6e6812ddcd0df748ba (diff) | |
download | timebomb-c5ef946dffc7a8962d48e928b63d718dd4de3d75.tar.gz timebomb-c5ef946dffc7a8962d48e928b63d718dd4de3d75.tar.bz2 timebomb-c5ef946dffc7a8962d48e928b63d718dd4de3d75.zip |
change in messagebox
-rw-r--r-- | timebomb.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/timebomb.py b/timebomb.py index 0be3663..19983b2 100644 --- a/timebomb.py +++ b/timebomb.py @@ -4,15 +4,17 @@ # 2020-02-08 # OM -from tkinter import * +from tkinter import Tk from tkinter import messagebox from tkinter import Canvas +#from tkinter import font as tkFont import argparse import time import shutil import notify2 root = Tk() +root.option_add('*Dialog.msg.font', 'Helvetica 12') def message(m, s): screen_width = root.winfo_screenwidth() @@ -31,7 +33,7 @@ def message(m, s): c = Canvas(root, bg = "darkred", \ width = screen_width, height = screen_height) c.pack() - messagebox.showwarning(msg) + messagebox.showwarning(title='ALARM', message=msg) #root.mainloop() def main(): |