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)
def ApplyAttributes(self, attributes): self.unit = attributes.unit SinglelineEdit.ApplyAttributes(self, attributes)