Code to generate popup window
(in_string)
| 27 | logger = logging.getLogger("Scratch") |
| 28 | |
| 29 | def error_box(in_string): |
| 30 | ''' |
| 31 | Code to generate popup window |
| 32 | ''' |
| 33 | window = Tk() |
| 34 | window.wm_withdraw() |
| 35 | |
| 36 | #message at x:200,y:200 |
| 37 | window.geometry("1x1+"+str(window.winfo_screenwidth()//2)+"+"+str(window.winfo_screenheight()//2)) |
| 38 | tkMessageBox.showerror(title="error",message=in_string,parent=window) |
| 39 | |
| 40 | @atexit.register |
| 41 | def cleanup(): |