Skip to content

Commit

Permalink
New start oct (dictation-toolbox#45)
Browse files Browse the repository at this point in the history
* fixed a few errors and brought to pytest spokenforms.py
* move _testtrayicon.py away
* change baseDirectory into dataDirectory (of Unimacro)
* change tmpDirectory into dataDirectory (of Unimacro), other unfinished changes
* changing unload module function in GrammarX...
* updated dependencies in project.toml
* fixed show all grammars more or less...
  • Loading branch information
quintijn authored Oct 21, 2023
1 parent 65dce88 commit 98f7fae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/unimacro/_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ def gotResults_show(self,words,fullResults):
self.BrowsePrepare(Start, All, Exclusive)
if All or Active:
#print 'collect and show active, non-active and non-Unimacro grammars'
G = self.getUnimacroGrammars()
Gmodulenames = self.getUnimacroGrammars()
G = {grammarobj.name: grammarobj for _objname, grammarobj in Gmodulenames.items()}
# print(f'allGrammars (Unimacro): {G}')
allGramNames = G.keys()
self.setList('gramnames', allGramNames)
Expand All @@ -440,8 +441,8 @@ def gotResults_show(self,words,fullResults):
print(f'activeGrammars: {activeGrammars}')
print(f'inactiveGrammars: {inactiveGrammars}')
print(f'switchedOffGrammars: {switchedOffGrammars}')
for grammar_name, gram in G.items():
pass
# for grammar_name, gram in G.items():
# print(f'grammar_name: {grammar_name}, gram: {gram}')

# gram = natbj.allUnimacroGrammars[g]
# print(f'{grammar_name}, isLoaded: {gram.isLoaded()}, isActive: {gram.isActive()}')
Expand Down

0 comments on commit 98f7fae

Please sign in to comment.