6. Blocks""" print(msg) print( "Alternatively, you could also define a 'config.json' configuration file" ) print(err) sys.exit() root = tk.Tk() root.title("Confluence Monitor v{}".format(vers_num)) w = 600 # width for the Tk root h = 500 # height for the Tk root # get screen width and height ws = root.winfo_screenwidth() # width of the screen hs = root.winfo_screenheight() # height of the screen # calculate x and y coordinates for the Tk root window dimensioner = 3 x = (ws / dimensioner) - (w / dimensioner) y = (hs / dimensioner) - (h / dimensioner) # set the dimensions of the screen # and where it is placed root.geometry('%dx%d+%d+%d' % (w, h, x, y)) app = mw.Application(master=root, conf_url=url, conf_space=space, conf_theme=theme, conf_categories=categories, thresholds=thresholds) app.mainloop()