CFrank - 2014-11-12

I did some tests with the notepad object - here are the results.

In general, except for the setCurrentLang method, there is only a document update needed.

  1. reloadBuffer and reloadFile need a second boolean parameter.

  2. The following methods aren't documented at all

    • notepad.loadSession(r'D:\saved_session.txt')
    • notepad.getSessionFiles(r'D:\saved_session.txt')
    • notepad.allocateCmdID() # how to get the int??
    • notepad.allocateMarker() # how to get the int??
    • notepad.allocateSupported()
    • notepad.getBufferFilename(notepad.getCurrentBufferID())
    • notepad.outputDebugString('some string') # what is this for?
  3. setCurrentLang is documented but not implemented, throws error
    AttributeError: 'Notepad' object has no attribute 'setCurrentLang'
    dir(notepad) confirms this.

Except for the undocumented methods, all other methods can be used as documented.
Sounds logical, doesn't it? ;-)

Note, I did just the call itself, no result tests and no extensive attribute tests
like testing all possible paramters e.g. I only used MESSAGEBOXFLAGS.ABORTRETRYIGNORE
and not the other possible flags in notepad.messageBox('message', 'title', flags).

The undocumented ones run fine except for the ones with the required int.
Didn't find the hint which int is required.

Cheers
Claudia