MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / error_box

Function error_box

Software/Scratch/GoPiGo3Scratch.py:29–38  ·  view source on GitHub ↗

Code to generate popup window

(in_string)

Source from the content-addressed store, hash-verified

27logger = logging.getLogger("Scratch")
28
29def 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
41def cleanup():

Callers 1

GoPiGo3Scratch.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected