19 Aug
2003
19 Aug
'03
7:54 p.m.
Jon Fox wrote at 2003-8-18 21:47 -0400:
... doc.manage_addProperty('newsFormatOptions', ['StructuredText','xhtml'],\ 'lines') doc.manage_addProperty('newsFormat', 'newsFormatOptions', 'selection')
but how do I assign the proper selection states in a python script?
You use "manage_changeProperties" (see the "PropertyManager" API (e.g. in the embedded Online help)).
How do I set or test what the current selection is in the selection?
You can use "getProperty" (from the "PropertyManager" API) or simple "doc.yourProperty". Dieter