.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2017 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.lib.sized_controls

.. highlight:: python



.. _wx.lib.sized_controls.TableSizer:

==========================================================================================================================================
|phoenix_title|  **wx.lib.sized_controls.TableSizer**
==========================================================================================================================================

An attempt at creating a more intuitive replacement for nesting box sizers.



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>TableSizer</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.lib.sized_controls.TableSizer_inheritance.png" alt="Inheritance diagram of TableSizer" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="75,5,157,35"/> <area shape="rect" id="node3" href="wx.Sizer.html" title="wx.Sizer  is the abstract base class used for laying out subwindows in a window." alt="" coords="79,83,153,112"/> <area shape="rect" id="node2" href="wx.lib.sized_controls.TableSizer.html" title="An attempt at creating a more intuitive replacement for nesting box sizers." alt="" coords="5,160,227,189"/> </map> 
   </p>

|


|super_classes| Known Superclasses
==================================

:class:`wx.Sizer`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.lib.sized_controls.TableSizer.__init__`                               
:meth:`~wx.lib.sized_controls.TableSizer.CalcMin`                                Calculate the minimum size.
:meth:`~wx.lib.sized_controls.TableSizer.CalcNumRowsCols`                        Calculate the number of rows and columns needed.
:meth:`~wx.lib.sized_controls.TableSizer.RecalcSizes`                            Recalculate the sizes.
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: TableSizer(wx.Sizer)

   An attempt at creating a more intuitive replacement for nesting box sizers.

   .. method:: __init__(self, rows=0, cols=0)


   .. method:: CalcMin(self)

      Calculate the minimum size.
      
      :rtype: :ref:`wx.Size`


   .. method:: CalcNumRowsCols(self)

      Calculate the number of rows and columns needed.
      
      :returns: The number of rows and columns needed by the sizer.
      :rtype: `tuple`


   .. method:: RecalcSizes(self)

      Recalculate the sizes.


