-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Herb
committed
Jul 25, 2024
1 parent
561c969
commit 5bb2928
Showing
33 changed files
with
1,203 additions
and
698 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Code Quality with pylint, pytest, black | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
pylint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run pylint | ||
continue-on-error: true | ||
run: | | ||
find qDNA tools -type f -name "*.py" ! -name "__init__.py" | xargs pylint | ||
pytest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Run tests with pytest | ||
run: python -m pytest | ||
|
||
black: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install black | ||
- name: Run black | ||
continue-on-error: true | ||
run: black --check . |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
import customtkinter as ctk | ||
|
||
|
||
class ConfigFrame(ctk.CTkFrame): | ||
def __init__(self, master, **kwargs): | ||
""" | ||
Notes: | ||
This frame is located in the main/ menu window. This means that the main window is its master. | ||
The frame uses the commands open_custom_window() and open_github() from the master | ||
Notes: | ||
This frame is located in the main/ menu window. This means that the main window is its master. | ||
The frame uses the commands open_custom_window() and open_github() from the master | ||
Widgets with get() method: | ||
appearance_mode_combo | ||
""" | ||
|
||
# initialization of the ctk.CTkFrame class | ||
super().__init__(master) | ||
|
||
# widgets | ||
self.open_github_button = ctk.CTkButton(self, text="GitHub", command=master.open_github) | ||
self.open_github_button = ctk.CTkButton( | ||
self, text="GitHub", command=master.open_github | ||
) | ||
self.open_github_button.grid(row=8, column=0, pady=10, padx=10) | ||
|
||
self.open_custom_window_button = ctk.CTkButton(self, text="Customize", command=master.open_custom_window) | ||
|
||
self.open_custom_window_button = ctk.CTkButton( | ||
self, text="Customize", command=master.open_custom_window | ||
) | ||
self.open_custom_window_button.grid(row=9, column=0, pady=10, padx=10) | ||
|
||
self.appearance_mode_label = ctk.CTkLabel(self, text="Appearance Mode:", anchor="w") | ||
|
||
self.appearance_mode_label = ctk.CTkLabel( | ||
self, text="Appearance Mode:", anchor="w" | ||
) | ||
self.appearance_mode_label.grid(row=10, column=0, pady=10, padx=10) | ||
|
||
self.appearance_mode_combo = ctk.CTkComboBox(self, values=["Light", "Dark", "System"], command=ctk.set_appearance_mode) | ||
|
||
self.appearance_mode_combo = ctk.CTkComboBox( | ||
self, values=["Light", "Dark", "System"], command=ctk.set_appearance_mode | ||
) | ||
self.appearance_mode_combo.grid(row=11, column=0, pady=10, padx=10) | ||
self.appearance_mode_combo.set('System') | ||
self.appearance_mode_combo.set("System") |
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.