01444cc8270b4517efcb2060d2814e025325d5f1,cellprofiler/gui/metadatactrl.py,MetadataControl,OnPaint,#MetadataControl#Any#,392
Before Change
text = self.get_text(i, i+1)
dc.TextBackground = background_color
dc.DrawText(text, loc, self.padding)
loc += self.GetTextExtent(text)[0]
finally:
dc.Destroy()
After Change
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: hit_test
Project Name: CellProfiler/CellProfiler
Commit Name: 1f6d1aa5eb7d4c31960e7b2aba04d94439956a49
Time: 2010-07-06
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/metadatactrl.py
Class Name: MetadataControl
Method Name: OnPaint