-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correção do bug que abria Scripts dentro da tela de Inicio
- Loading branch information
1 parent
45401d1
commit a5a34b5
Showing
8 changed files
with
285 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"acessos": 388, "vezes_interpretador_iniciado": 0} | ||
{"acessos": 468, "vezes_interpretador_iniciado": 0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
from util.funcoes import carregar_json | ||
from platform import system as platform_system | ||
|
||
#objeto['font'] = ('Ubuntu Mono', '') | ||
#fonte = "Lucida Sans" | ||
#if (platform_system() == 'Linux'): | ||
# fonte = 'Ubuntu Mono' | ||
|
||
class Colors(): | ||
def __init__(self): | ||
self.dic = {} | ||
|
||
def __get_sett_file(self): | ||
def __get_config_file(self): | ||
return carregar_json("configuracoes/configuracoes.json")["tema"] | ||
|
||
def update_design_dic(self): | ||
try: | ||
texto_json = "temas/interface/{}".format(self.__get_sett_file()) | ||
texto_json = "temas/interface/{}".format(self.__get_config_file()) | ||
self.dic = carregar_json(texto_json) | ||
except Exception as e: | ||
return [False, e] | ||
|
||
def get(self, chave): | ||
try: | ||
return self.dic[chave] | ||
except Exception as e: | ||
print(e) | ||
return {} | ||
|
||
|
||
|
||
def get_design_dic(self): | ||
return self.dic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.