Permalink
Browse files

gui works for both indexes

  • Loading branch information...
1 parent 02947c5 commit f5ddf18191efc977347d38f9bf8579047064b232 tecoholic committed Jun 22, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 gui.py
  2. +1 −2 searcher.py
View
2 gui.py
@@ -83,7 +83,7 @@ def ShowMeaning(self, event):
''' The ShowMeaning function prints the meaning for the word selected
for in the ListBox '''
opted = self.Matches[event.GetSelection()]
- meaning_text = opted['meaning']
+ meaning_text = get_markup(opted['word'],opted['meaning'])
self.ResultBox.SetValue('')
self.ResultBox.WriteText(meaning_text)
View
@@ -40,8 +40,7 @@ def get_markup(word,meaning):
if filexp.match(meaning):
#parse the file and return wiki text
#print "Contains File Name"
- bzfile = bz2.BZ2File(os.path.join("chunks",
- meaning))
+ bzfile = bz2.BZ2File(os.path.join("chunks",meaning))
xmltext = '<page>'
writ = False
for li in bzfile:

0 comments on commit f5ddf18

Please sign in to comment.