def Draw(self, dc):
        ''' Draw the tree map on the device context. '''
        self.hot_map = []
        dc.BeginDrawing()
        brush = wx.Brush( self.BackgroundColour  )
        dc.SetBackground( brush )
        dc.Clear()
        if self.model:
            self.max_depth_seen = 0
            font = self.FontForLabels(dc)
            dc.SetFont(font)
            self._em_size_ = dc.GetFullTextExtent( 'm', font )[0]
            w, h = dc.GetSize()
            self.DrawBox( dc, self.model, 0,0,w,h, hot_map = self.hot_map )
        dc.EndDrawing()
def Draw ( self , dc ) : self . hot_map = [ ] dc . BeginDrawing ( ) brush = wx . Brush ( self . BackgroundColour ) dc . SetBackground ( brush ) dc . Clear ( ) if self . model : self . max_depth_seen = 0 font = self . FontForLabels ( dc ) dc . SetFont ( font ) self . _em_size_ = dc . GetFullTextExtent ( 'm' , font ) [ 0 ] w , h = dc . GetSize ( ) self . DrawBox ( dc , self . model , 0 , 0 , w , h , hot_map = self . hot_map ) dc . EndDrawing ( )
Draw the tree map on the device context.