Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def ApplyAttributes(self, attributes):
     self.unit = attributes.unit
     SinglelineEdit.ApplyAttributes(self, attributes)