~yacinechaouche/+junk/BZR

« back to all changes in this revision

Viewing changes to CODE/FB/BIBLE/snips.py

  • Committer: yacinechaouche at yahoo
  • Date: 2015-01-14 22:23:03 UTC
  • Revision ID: yacinechaouche@yahoo.com-20150114222303-6gbtqqxii717vyka
Ajout de CODE et PROD. Il faudra ensuite ajouter ce qu'il y avait dan TMP

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class abn_bible(wx.Frame):
 
2
    def __init__(self, parent):
 
3
        ...
 
4
        self.cb_BiblesChoices = [
 
5
            ('OLD King James Version (English)','kjv'),
 
6
            ('Bible Society of India (Tamil)','tamil'),
 
7
            ('American King James Version (English)','akjv')
 
8
            ...
 
9
            ]
 
10
        bible_versions = [entry[0] for entry in self.cb_BiblesChoices]
 
11
        self.cb_Bibles = wx.Choice(self, wx.ID_ANY, wx.DefaultPosition,
 
12
                                   wx.DefaultSize, bible_versions, 0)
 
13
        ...
 
14
        
 
15
    def Search(self, event):
 
16
        self.Clear()
 
17
        search_term   = str(self.sc.GetValue())
 
18
        choice        = self.cb_Bibles.GetCurrentSelection()
 
19
        bible_version = self.cb_BiblesChoices[choice][1]
 
20
        self.results  = find(search_term,bible_version)
 
21
        ...
 
22
        
 
23