From 98f7faeac51ceab9af12d2bfa31eec5031e3ec1c Mon Sep 17 00:00:00 2001 From: Quintijn Hoogenboom Date: Sat, 21 Oct 2023 11:16:59 +0200 Subject: [PATCH] New start oct (#45) * 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... --- src/unimacro/_control.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/unimacro/_control.py b/src/unimacro/_control.py index e02a424..56a7c20 100644 --- a/src/unimacro/_control.py +++ b/src/unimacro/_control.py @@ -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) @@ -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()}')