Changeset 2959

Show
Ignore:
Timestamp:
03/23/07 14:41:37 (2 years ago)
Author:
paul
Message:

On Windows, if the parent row changes the rest of the form updates, except if
the child rowcount is equal to the prior child rowcount, the child grid won't
refresh. This fixes it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dGrid.py

    r2916 r2959  
    17551755    def fillGrid(self, force=False): 
    17561756        """ Refresh the grid to match the data in the data set.""" 
    1757  
    17581757        # Get the default row size from dApp's user settings 
    17591758        rowSize = self._getUserSetting("RowSize") 
     
    17771776            self._modeSet = True 
    17781777            self.SelectionMode = self.SelectionMode 
     1778 
     1779        # And just to make sure (sometimes on Windows, the grid isn't refreshed 
     1780        # otherwise, and perhaps this is true elsewhere, too.): 
     1781        dabo.ui.callAfterInterval(200, self.refresh) 
    17791782 
    17801783 
     
    26542657        super(dGrid, self).refresh() 
    26552658     
    2656      
    26572659    def update(self): 
     2660        self.Freeze() 
    26582661        super(dGrid, self).update() 
    26592662        self.fillGrid() 
    2660  
     2663        self.Thaw() 
    26612664 
    26622665    def _getWxHeader(self):