Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/las.py
diff options
context:
space:
mode:
Diffstat (limited to 'las.py')
-rw-r--r--las.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/las.py b/las.py
index 1a61511..9ed08d3 100644
--- a/las.py
+++ b/las.py
@@ -8,16 +8,6 @@ import csnd
from dict import dict
from dict import word
-bus = dbus.SessionBus()
-APLAY = "/usr/bin/aplay"
-espeak_object = bus.get_object('org.laptop.Speech','/org/laptop/Speech')
-
-dictionary = ""
-pronouncedict = ""
-skill = ""
-answer = ""
-clearit = "" # Because I couldn't null a string
-
# My class for key detection
class _Getch:
"""Gets a single character from standard input. Does not echo to the screen."""
@@ -127,7 +117,6 @@ class listenspell():
def load_wordid(self, num_words):
temp_list = []
self.wordid_list = []
-
temp_list = self.dict_obj.getrandomwordid(length = self.skill_level,numwords = num_words)
for(wordid, ) in temp_list:
self.wordid_list.append(wordid)
@@ -135,7 +124,8 @@ class listenspell():
def getwordinfo(self,wordid, attribute):
if self.word_obj.getwordid() != wordid:
- self.word_obj.__init__("wordid", wordid)
+ self.word_obj.__init__(identifier = "wordid", value= wordid)
+ print "Hello Again"
self.words_played = self.words_played + 1
if attribute == "def":