Search notes:

Python code snippets: Win-API

MessageBox

This Stackoverflow answer demonstrates how a (WinAPI) MessageBox can be created using the Win API function MessageBox (that is defined in user32.dll).
import ctypes

result = ctypes.windll.user32.MessageBoxW(
   0            ,
  'Yes or no?'  ,
  'Choose wisly',
    4           |  # MB_YESNO
   32              # MB_ICONQUESTION
)

if   result == 6:            # ID_YES
     print('Good for you!')
else:
     print('Well, do you want to talk about it?')
Github repository about-python, path: /code-snippets/Win-API/MessageBox.py

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758199138, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/code-snippets/Win-API/index(55): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78