comparison clients/editor/plugins/objectselector.py @ 230:664d7c2530e4

Incremental search for object selector
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 21 Mar 2009 22:27:01 +0000
parents 9a2cd4c46a61
children c62ed457e954
comparison
equal deleted inserted replaced
229:9a2cd4c46a61 230:664d7c2530e4
138 self.gui = pychan.loadXML('gui/objectselector.xml') 138 self.gui = pychan.loadXML('gui/objectselector.xml')
139 139
140 # Add search field 140 # Add search field
141 self._searchfield = self.gui.findChild(name="searchField") 141 self._searchfield = self.gui.findChild(name="searchField")
142 self._searchfield.capture(self._search) 142 self._searchfield.capture(self._search)
143 self._searchfield.capture(self._search, "keyPressed")
143 self.gui.findChild(name="searchButton").capture(self._search) 144 self.gui.findChild(name="searchButton").capture(self._search)
144 145
145 # Add the drop down with list of namespaces 146 # Add the drop down with list of namespaces
146 self.namespaces = self.gui.findChild(name="namespaceDropdown") 147 self.namespaces = self.gui.findChild(name="namespaceDropdown")
147 self.namespaces.items = self.engine.getModel().getNamespaces() 148 self.namespaces.items = self.engine.getModel().getNamespaces()