Archive for category Python Recipes

ShowHTMLDialog with Python and ctypes

This python recipe demonstrates how to use ShowHTMLDialog with Python, ctypes and comtypes on Windows.

showhtmldialog

Read the rest of this entry »

, , ,

No Comments

Bring Colors to the Windows Console with Python

The recipe described in this post demonstrates how to write foreground and background colored text in a Windows Command Line with Python and ctypes.

Colored text in a windows terminal with Python and ctypes

Colored text in a windows terminal with Python and ctypes

Read the rest of this entry »

, ,

9 Comments

XML Schema Validation with Python, MSXML and comtypes

The previous Python Tip, XML Schema Validation with Python, MSXML and PyWin32, described how to use PyWin32 and MSXML to validate XML contents against an XML Schema. The adaptation to perform the same with comtypes instead of PyWin32 is a simple translation. Read the rest of this entry »

, , ,

3 Comments

XML Schema Validation with Python, MSXML and PyWin32

Python ships with XML libraries, but none addressing XML Schema validation. Several options are available to make up for this feature. The solution demonstrated in this Python Tip is a basic implementation of XML schema validation using MSXML and PyWin32. Read the rest of this entry »

, , ,

1 Comment