메뉴 여닫기
개인 메뉴 토글
로그인하지 않음
만약 지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.

메시지창 띄우기: 두 판 사이의 차이

데브카페
새 문서: == 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 pyautogu...
 
 
2번째 줄: 2번째 줄:
{{틀:요약
{{틀:요약
|제목=PyautoGui 메시지창
|제목=PyautoGui 메시지창
----
* alert(): A simple message box with an OK button.
* alert(): A simple message box with an OK button.
* confirm(): Displays a Yes/No message box and returns the option chosen.
* confirm(): Displays a Yes/No message box and returns the option chosen.

2024년 10월 23일 (수) 00:45 기준 최신판

PyautoGui 메시지창 띄우기

 list_altPyautoGui 메시지창
  • 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

# Displays a simple alert message with an OK button.
<source lang=python>
import pyautogui

pyautogui.alert('This is an alert message!')

Confirmation Message Box (Yes/No)

  1. Displays a confirmation message box and returns the user’s response as 'OK' or 'Cancel'.
import pyautogui

response = pyautogui.confirm('Do you want to proceed?')
print(f'User selected: {response}')

Prompt for Text Input

  1. Opens a dialog box for the user to input text.

import pyautogui

name = pyautogui.prompt('What is your name?')
print(f'Hello, {name}!')

Password Input (Obscured Text)

  1. Opens a dialog box to enter a password, where the input is hidden.
import pyautogui

password = pyautogui.password('Enter your password:')
print('Password entered (hidden for security).')

Comments