01444cc8270b4517efcb2060d2814e025325d5f1,cellprofiler/gui/metadatactrl.py,MetadataControl,OnPaint,#MetadataControl#Any#,392

Before Change


                    dc.TextBackground = metadata_color
                    text = token.value
                else:
                    text = self.get_text(i, i+1)
                    dc.TextBackground = background_color
                dc.DrawText(text, loc, self.padding)
                loc += self.GetTextExtent(text)[0]
        finally:

After Change


                                    self.ClientSize[0] - 2*self.padding,
                                    self.ClientSize[1] - 2*self.padding))
            text = self.get_text(0, len(self.__tokens))
            positions = self.get_positions(dc)
                
            dc.Brush = wx.Brush(metadata_color)
            dc.Pen = wx.TRANSPARENT_PEN
            for i, token in enumerate(self.__tokens):
                if isinstance(token, self.MetadataToken):
                    dc.DrawRectangle(positions[i], self.padding, 
                                     positions[i+1] - positions[i],
                                     self.ClientSize[1] - self.padding)
            dc.BackgroundMode = wx.TRANSPARENT
            dc.DrawText(text, self.xoffset, self.padding)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 01444cc8270b4517efcb2060d2814e025325d5f1
Time: 2010-11-18
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: OnPaint


Project Name: CellProfiler/CellProfiler
Commit Name: 01444cc8270b4517efcb2060d2814e025325d5f1
Time: 2010-11-18
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: OnPaint


Project Name: CellProfiler/CellProfiler
Commit Name: 01444cc8270b4517efcb2060d2814e025325d5f1
Time: 2010-11-18
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: hit_test


Project Name: dmnfarrell/pandastable
Commit Name: ea09216be4053f3ef5c4bc4425c8f943ac48c5e1
Time: 2016-02-18
Author: farrell.damien@gmail.com
File Name: pandastable/handlers.py
Class Name: DragHandler
Method Name: on_release_event