aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpux <pux@pux.dom>2020-05-05 04:55:05 +0200
committerpux <pux@pux.dom>2020-05-05 04:55:05 +0200
commitc5ef946dffc7a8962d48e928b63d718dd4de3d75 (patch)
tree5043acdb2f001df53842eaed4290de16c728f545
parent0362cc36550eed6f919d7d6e6812ddcd0df748ba (diff)
downloadtimebomb-c5ef946dffc7a8962d48e928b63d718dd4de3d75.tar.gz
timebomb-c5ef946dffc7a8962d48e928b63d718dd4de3d75.tar.bz2
timebomb-c5ef946dffc7a8962d48e928b63d718dd4de3d75.zip
change in messagebox
-rw-r--r--timebomb.py6
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():
in each repos: see "about"-tab (if existing) for more details / README.
mailto contact at omeckman dot net
all timestamps in UTC (German winter time: UTC+01:00, summer time: UTC+02:00)
dark theme is a modded version of: https://gist.github.com/Yoplitein/f4b671a2ec70c9e743fa