“Python MessageBox” Kod odpowiedzi

Tkinter Info Box

from tkinter import messagebox

messagebox.showinfo('Title', 'Information')
Plain Pintail

Pole wiadomości dla Pythona

import pyautogui
print(pyautogui.alert("Hi grepper user"))
Programmer of empires

Python MessageBox

import ctypes # native module

style = 1
ctypes.windll.user32.MessageBoxW(0, 'Your text', 'Your title', style)

## Styles:
# 0 : OK
# 1 : OK | Cancel
# 2 : Abort | Retry | Ignore
# 3 : Yes | No | Cancel
# 4 : Yes | No
# 5 : Retry | Cancel 
# 6 : Cancel | Try Again | Continue
## To also change icon, add these values to previous number
# 16 : Stop-sign icon
# 32 : Question-mark icon
# 48 : Exclamation-point icon
# 64 : Information-sign icon consisting of an 'i' in a circle
Inexpensive Impala

Odpowiedzi podobne do “Python MessageBox”

Pytania podobne do “Python MessageBox”

Więcej pokrewnych odpowiedzi na “Python MessageBox” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu