-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add word audio, pitch, and clipboard functionaltiy
- Loading branch information
1 parent
c69b8e8
commit ac21bbb
Showing
19 changed files
with
500 additions
and
372 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ Pillow==8.4.0 | |
PyYAML==6.0 | ||
pyinstaller==4.10 | ||
pynput==1.7.6 | ||
pyperclip==1.8.2 | ||
QtAwesome==1.1.1 |
This file was deleted.
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
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,23 @@ | ||
from configparser import ConfigParser | ||
|
||
class Config(): | ||
def __init__(self, appctxt): | ||
self.config_file = appctxt.get_resource('config.ini') | ||
self.config_object = ConfigParser() | ||
|
||
def read(self, section_name, key): | ||
self.config_object.read(self.config_file, encoding='utf-8') | ||
section = self.config_object[section_name] | ||
return section[key] | ||
|
||
def write(self, section_name, to_update_dict): | ||
self.config_object.read(self.config_file, encoding='utf-8') | ||
section = self.config_object[section_name] | ||
|
||
# Update the key value | ||
for key, value in to_update_dict.items(): | ||
section[key] = value | ||
|
||
# Write changes back to file | ||
with open(self.config_file, 'w', encoding='utf-8') as conf: | ||
self.config_object.write(conf) |
Oops, something went wrong.