コード例 #1
0
ファイル: searchinput.py プロジェクト: connoryang/1v1dec
 def ApplyAttributes(self, attributes):
     SinglelineEdit.ApplyAttributes(self, attributes)
     self.OnChange = self.OnSearchInputChange
     self.GetSearchEntries = attributes.GetSearchEntries
     self.OnSearchEntrySelected = attributes.OnSearchEntrySelected
     self.CloseMenuCallback = attributes.OnResultMenuClosed
     uicore.uilib.RegisterForTriuiEvents([uiconst.UI_MOUSEDOWN], self.OnGlobalMouseDown)
コード例 #2
0
ファイル: uiSettingUtil.py プロジェクト: connoryang/1v1dec
 def ApplyAttributes(self, attributes):
     self.unit = attributes.unit
     SinglelineEdit.ApplyAttributes(self, attributes)