How do I construct typed constants for the OneNote COM API in python?
问题 I want to use the UpdatePageContent COM method documentation via the python win32com module. Things I can do so far include getting the hierarchy, getting page contents, etc. I can even validly manipulate the XML to prepare changes (tested using the MATLAB COM interface). This is a minimal example of what I am trying to do: import win32com from bs4 import BeautifulSoup oneNoteApp = win32com.client.Dispatch('OneNote.Application') pageID = '{603BD3F0-4DAB-4E5B-8E28-28CA0F2B0C83}{1}{B0}' # from