-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a PySimpleGUI-fueled interface that has feature parity with the command line.
- Loading branch information
Showing
9 changed files
with
344 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[kivy] | ||
index-url = https://kivy.org/downloads/simple/ |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import asyncio | ||
import logging | ||
import os | ||
import sys | ||
|
||
from ui.app_window import AppWindow | ||
|
||
|
||
def setup_logger(): | ||
os.environ["KIVY_NO_CONSOLELOG"] = "1" | ||
os.environ["KIVY_NO_FILELOG"] = "1" | ||
logger = logging.getLogger('radio_sync') | ||
formatter = logging.Formatter( | ||
fmt='%(asctime)s.%(msecs)03d %(levelname)7s %(filename).6s:%(lineno)3s: %(message)s', | ||
datefmt="%Y-%m-%d %H:%M:%S" | ||
) | ||
|
||
handler = logging.StreamHandler(stream=sys.stdout) | ||
handler.setFormatter(formatter) | ||
|
||
logger.setLevel(logging.DEBUG) | ||
logger.addHandler(handler) | ||
logging.root = logger | ||
|
||
|
||
async def main(): | ||
setup_logger() | ||
# kivy does some janky logging, so any logs that get put before this point are likely to get gobbled up. | ||
app_window = AppWindow() | ||
await app_window.async_run() | ||
|
||
return | ||
|
||
|
||
if __name__ == '__main__': | ||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(main()) |
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,2 +1,3 @@ | ||
openpyxl == 3.0.6 | ||
pyinstaller == 4.2 | ||
pyinstaller == 4.2 | ||
pysimplegui == 4.34.0 |
Oops, something went wrong.