Logo Search packages:      
Sourcecode: whyteboard version File versions  Download package

def whyteboard::lib::flatnotebook::PageContainer::OnSize (   self,
  event 
)
Handles the ``wx.EVT_SIZE`` event for L{PageContainer}.

:param `event`: a `wx.SizeEvent` event to be processed.

Definition at line 4936 of file flatnotebook.py.

                           :
        """
        Handles the ``wx.EVT_SIZE`` event for L{PageContainer}.

        :param `event`: a `wx.SizeEvent` event to be processed.
        """

        # When resizing the control, try to fit to screen as many tabs as we can
        agwStyle = self.GetParent().GetAGWWindowStyleFlag()
        renderer = self._mgr.GetRenderer(agwStyle)

        fr = 0
        page = self.GetSelection()

        for fr in xrange(self._nFrom):
            vTabInfo = renderer.NumberTabsCanFit(self, fr)
            if page - fr >= len(vTabInfo):
                continue
            break

        self._nFrom = fr

        self.Refresh() # Call on paint
        event.Skip()



Generated by  Doxygen 1.6.0   Back to index