5d1b7a5fd8d26d4422fc47dd65eeadd37517daa8,labelme/labelDialog.py,LabelDialog,popUp,#LabelDialog#Any#Any#,98
Before Change
def popUp(self, text=None, move=True):
// if text is None, the previous label in self.edit is kept
if text is not None:
self.edit.setText(text)
self.edit.setSelection(0, len(text))
items = self.labelList.findItems(text, QtCore.Qt.MatchFixedString)
if items:
assert len(items) == 1
self.labelList.setCurrentItem(items[0])
self.edit.setFocus(QtCore.Qt.PopupFocusReason)
if move:
self.move(QtGui.QCursor.pos())
return self.edit.text() if self.exec_() else None
After Change
def popUp(self, text=None, move=True):
// if text is None, the previous label in self.edit is kept
if text is None:
text = self.edit.text()
self.edit.setText(text)
self.edit.setSelection(0, len(text))
items = self.labelList.findItems(text, QtCore.Qt.MatchFixedString)
if items:
assert len(items) == 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: wkentaro/labelme
Commit Name: 5d1b7a5fd8d26d4422fc47dd65eeadd37517daa8
Time: 2018-04-01
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: popUp
Project Name: wkentaro/labelme
Commit Name: 6117ec6153cd9e11192e98ca2dfbd1888574cff6
Time: 2018-04-14
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: postProcess
Project Name: wkentaro/labelme
Commit Name: ad9e0c5079c07b255acacd82ba90aa6ecd04bf10
Time: 2018-03-31
Author: www.kentaro.wada@gmail.com
File Name: labelme/labelDialog.py
Class Name: LabelDialog
Method Name: popUp