Changeset 4509

Show
Ignore:
Timestamp:
09/08/08 10:55:54 (2 months ago)
Author:
ed
Message:

Fixed the problem with an errant call to obj.layout().

Removed the code that re-bound the grid header painting.

Removed the 'PROP DICT ERROR' debug output.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4492 r4509  
    28122812            else: 
    28132813                dui.callAfter(self.select, obj) 
    2814             obj.layout() 
     2814            try: 
     2815                obj.layout() 
     2816            except AttributeError: 
     2817                # The object does not have a layout() method 
     2818                pass 
    28152819            dui.callAfterInterval(100, self.updateLayout) 
    28162820        return obj 
  • trunk/ide/ClassDesignerControlMixin.py

    r4508 r4509  
    190190             
    191191 
    192 ## pkm: Don't need/want to explicitly call _paintHeader(), as that already 
    193 ##      happens in dGrid.        
    194 #   def onGridHeaderPaint(self, evt): 
    195 #       self._paintHeader() 
    196          
    197      
    198192    def bringToFront(self): 
    199193        super(ClassDesignerControlMixin, self).bringToFront() 
  • trunk/ide/ClassDesignerPropSheet.py

    r4433 r4509  
    711711            return self.propDict[prop] 
    712712        except KeyError, e: 
    713             print "PROP DICT ERROR: >%s<, row=%s" % (prop, row) 
     713            return None 
     714#           print "PROP DICT ERROR: >%s<, row=%s" % (prop, row) 
    714715         
    715716