01444cc8270b4517efcb2060d2814e025325d5f1,cellprofiler/gui/metadatactrl.py,MetadataControl,hit_test,#MetadataControl#Any#,335
Before Change
text = self.get_text(i, i+1)
x += self.GetTextExtent(text)[0]
if x > pos:
if isinstance(token, self.MetadataToken):
return i
if pos - last > x-pos:
return i+1
else:
return i
After Change
event.Skip()
def hit_test(self, pos):
text = self.get_text(0, len(self.__tokens))
dc = wx.ClientDC(self)
dc.Font = self.Font
positions = self.get_positions(dc)
del dc
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: hit_test
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: mozilla/bugbug
Commit Name: 4ace4ef2fb1956ec4df46f78c9edd02154780913
Time: 2019-07-24
Author: cklyyung@users.noreply.github.com
File Name: bugbug/similarity.py
Class Name: Word2VecWmdSimilarity
Method Name: __init__