EasyGUI basic tutorial and easygui tutorial
2. Button Components
① Msgbox ()
Msgbox (msg = '(Your message goes here)', title = '', OK _button = 'OK', image = None, root = None)
② Ccbox ()
Ccbox (msg = 'Shall I continue? ', Title = '', choices = tuples, image = None) This method returns 0 or 1
③ Ynbox ()
Ynbox (msg = 'Shall I continue? ', Title = '', choices = ('yes', 'no'), image = None is the same as ②.
④ Buttonbox (msg = '', title ='', choices = tuples, image = None, root = None) customizes a set of buttons. When you click any button, return the text content of the button. If you cancel or close the window, the default option (the first option) is returned ).
⑤ Indexbox () is the same as above, but the return value is not the text but the number, starting from 0.
⑥ Boolbox ()
Boolbox (msg = '', title ='', choices ('yes', 'no'), image = None). If you press the first button, 1 is returned, and 0 is returned.
5. Ask the user to enter the password
① Passwordbox (msg, title, default, image, root), returns the string entered by the user
② Multpasswordbox (msg, title, field = (), values = ())
Directories and files
Remember user settings
Capture exceptionsPredictionbox ()'