문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자.
== PyautoGui 메시지창 띄우기 == {{틀:요약 |제목=PyautoGui 메시지창 ---- * alert(): A simple message box with an OK button. * confirm(): Displays a Yes/No message box and returns the option chosen. * prompt(): Opens a dialog box to collect input from the user. * password(): Similar to prompt(), but hides the input (for passwords). }} === Alert Message Box === <source lang=python> # Displays a simple alert message with an OK button. <source lang=python> import pyautogui pyautogui.alert('This is an alert message!') </source> === Confirmation Message Box (Yes/No) === # Displays a confirmation message box and returns the user’s response as 'OK' or 'Cancel'. <source lang=python> import pyautogui response = pyautogui.confirm('Do you want to proceed?') print(f'User selected: {response}') </source> === Prompt for Text Input === # Opens a dialog box for the user to input text. <source lang=python> import pyautogui name = pyautogui.prompt('What is your name?') print(f'Hello, {name}!') </source> === Password Input (Obscured Text) === # Opens a dialog box to enter a password, where the input is hidden. <source lang=python> import pyautogui password = pyautogui.password('Enter your password:') print('Password entered (hidden for security).') </source> [[category:python]]
문서 저장 미리 보기 차이 보기 취소