18 lines
331 B
Python
18 lines
331 B
Python
# Bryan Schumaker (4 / 18 / 2011)
|
|
|
|
import gtk
|
|
import ocarina
|
|
from ocarina import shortcuts
|
|
from libsaria import sources
|
|
|
|
entry = gtk.Entry()
|
|
entry.show()
|
|
|
|
has_focus = entry.is_focus
|
|
|
|
def do_filter(entry):
|
|
sources.filter(entry.get_text())
|
|
entry.connect("changed", do_filter)
|
|
|
|
shortcuts.register_shortcut("slash", entry.grab_focus)
|