def count ( self ) : c = self . main_tab_widget . count ( ) for child in self . child_splitters : c += child . count ( ) return c
finding width of expanded python tkinter widget
Returns the number of widgets currently displayed ( takes child splits into account ) .
def count(self):
        """
        Returns the number of widgets currently displayed (takes child splits
        into account).
        """
        c = self.main_tab_widget.count()
        for child in self.child_splitters:
            c += child.count()
        return c