Skip to content

Commit

Permalink
fix: fixed MessageBox
Browse files Browse the repository at this point in the history
  • Loading branch information
soumt-r committed Apr 3, 2023
1 parent 55ba005 commit b513cad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
Write-Output "::endgroup::"
- name: build
run: pyinstaller --onefile --noconsole --exclude torch --exclude numpy --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --icon resources/logo.ico OSC-SRTC.py
run: pyinstaller --onefile --noconsole --exclude torch --exclude numpy --exclude tensorflow --exclude pandas --add-data "./resources;resources" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/pykakasi/data;pykakasi\\data" --add-data "./modules;modules" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/customtkinter;customtkinter" --add-data "C:/hostedtoolcache/windows/Python/3.10.4/x64/Lib/site-packages/CTkMessagebox;CTkMessagebox" --icon resources/logo.ico OSC-SRTC.py

- name: upload
uses: actions/upload-artifact@v1
Expand Down
2 changes: 1 addition & 1 deletion modules/SRTC_Recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def ListenAndRecognize(self, recognizer: str, language: str, stop_event: threadi
return ""
time.sleep(0.1)

playsound(resource_path("resources\\1.wav").replace("\\", "/"), block=True)
playsound(resource_path("resources\\1.wav").replace("\\", "/"), block=False)
self.__print_log("[SRecognizer][Info] Listening...")

try:
Expand Down
8 changes: 5 additions & 3 deletions modules/SRTC_Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
import os
import json

import requests
from bs4 import BeautifulSoup
from CTkMessagebox import CTkMessagebox

default_settings = '''
{
"osc_ip" : "127.0.0.1",
"osc_port" : 9000,
"osc_serv_ip" : "127.0.0.1",
"osc_serv_port" : 9001,
"http_ext_port" : 9002,
"azure_key" : "",
"azure_location" : "",
Expand Down Expand Up @@ -47,9 +52,6 @@ def clear_screen():
os.system("cls" if os.name == "nt" else "clear")

def update_check(ver: int) -> None:
import requests
from bs4 import BeautifulSoup
from CTkMessagebox import CTkMessagebox
try:
url = "https://rera-c.booth.pm/items/4217922"
res = requests.get(url)
Expand Down

0 comments on commit b513cad

Please sign in to comment.