This repository has been archived by the owner on Mar 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from rupor-github/gdrive
Add files form Google Drive for GUI
- Loading branch information
Showing
27 changed files
with
4,225 additions
and
1,176 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
{"installed":{"client_id":"1065252841434-ijfnt8osb1esmbs54jrqktskltjq8eei.apps.googleusercontent.com","project_id":"ancient-truth-209812","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://accounts.google.com/o/oauth2/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"NtsAt-tkUgvCXFHJmM1Uukm7","redirect_uris":["urn:ietf:wg:oauth:2.0:oob","http://localhost"]}} |
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,25 @@ | ||
from glob import glob | ||
from subprocess import call | ||
import os | ||
|
||
SRCPATH = 'ui' | ||
DESTPATH = 'ui' | ||
|
||
def compile_ui(): | ||
for uifile in glob(os.path.join(SRCPATH, '*.ui')): | ||
pyfile = os.path.join(DESTPATH, os.path.splitext(os.path.split(uifile)[1])[0] + '.py') | ||
uifile = os.path.normpath(uifile) | ||
pyfile = os.path.normpath(pyfile) | ||
call('pyuic5 --from-imports {} -o {}'.format(uifile, pyfile), shell=True) | ||
|
||
def compile_rc(): | ||
for uifile in glob(os.path.join(SRCPATH, '*.qrc')): | ||
pyfile = os.path.join(DESTPATH, os.path.splitext(os.path.split(uifile)[1])[0] + '_rc.py') | ||
uifile = os.path.normpath(uifile) | ||
pyfile = os.path.normpath(pyfile) | ||
call('pyrcc5 {} -o {}'.format(uifile, pyfile), shell=True) | ||
|
||
|
||
if __name__ == '__main__': | ||
compile_ui() | ||
compile_rc() |
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,6 +1,7 @@ | ||
SOURCES = fb2mobi-gui.py \ | ||
ui/AboutDialog.py \ | ||
ui/MainWindow.py \ | ||
ui/SettingsDialog.py | ||
ui/SettingsDialog.py \ | ||
ui/OpenGDriveDialog.py | ||
|
||
TRANSLATIONS = fb2mobi_ru.ts |
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.