How to get the number of windows in a MultiSplitterWindow (or SashPosition as a List) ?

hello,

for automatic saving / restoring MultiSplitterWindow,
I need to know the number of splitters,
so I can save the sash positions, by reading MultiSplitterWindow.GetSashPosition ( i )

thanks,
Stef Mientki

1 Like

len(splitter._windows)

···

On 10/18/09 3:29 PM, Stef Mientki wrote:

hello,

for automatic saving / restoring MultiSplitterWindow,
I need to know the number of splitters,
so I can save the sash positions, by reading
MultiSplitterWindow.GetSashPosition ( i )

--
Robin Dunn
Software Craftsman

Robin Dunn wrote:

···

On 10/18/09 3:29 PM, Stef Mientki wrote:
  

hello,

for automatic saving / restoring MultiSplitterWindow,
I need to know the number of splitters,
so I can save the sash positions, by reading
MultiSplitterWindow.GetSashPosition ( i )
    
len(splitter._windows)

Thanks Robin,

so the underscore seems to be the reason I couldn't find it with autocompletion.

cheers
Stef