Skip to content

Commit

Permalink
Merge pull request #15 from r-liner/hotfix
Browse files Browse the repository at this point in the history
Hotfix (v1.3.1)
  • Loading branch information
liner-exe authored Feb 8, 2024
2 parents 7ee7357 + b0aae4f commit 722532d
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 20 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior:

**Expected behavior**

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Server:**

- OS:
- Python version:

**Traceback**

```
Paste Python error traceback here
```
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Question
about: Need help with running the bot?
title: ''
labels: question
assignees: ''

---

**Describe the problem you are running into**

A clear and concise description of what the problem is.

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Server:**

- OS:
- Python version:
- disnake version:

**Traceback**

```
Paste Python error traceback here if applicable
```
24 changes: 24 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Description
Describe the changes in this pull request.

### Related Issue
- Mention the related issue here (if applicable).

### Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Code quality improvements
- [ ] Refactoring
- [ ] Documentation update
- [ ] Other (please specify)

### Checklist
- [ ] I have performed a self-review of my own code.
- [ ] I have written unit tests and/or e2e tests.
- [ ] My code follows the project's code style guidelines.
- [ ] I have made corresponding changes to the documentation.
- [ ] My changes do not produce any new warnings or errors.
- [ ] I have tested my changes.

### Screenshots (if applicable)
Please attach any relevant screenshots or images if applicable.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3
1.3.1
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PasswordGenerator-GUI (v1.3)
# PasswordGenerator-GUI (v1.3.1)
## ❓ About
Password Generator with graphical interface on custom tkinter
<br><br>
Expand All @@ -14,16 +14,16 @@ Password Generator with graphical interface on custom tkinter
<img src='./images/screenshot_win_v12.png' width=536 height=336 alt='screenshot-win-v12'>
<br><br>

**Windows (v1.3)**
**Windows (v1.3.1)**
<br>
<img src='./images/screenshot_win_v13.png' width=536 height=336 alt='screenshot-win-v13'>
<img src='./images/screenshot_win_v131.png' width=536 height=336 alt='screenshot-win-v131'>
<br><br>

## ⚙️ Compatibility
| **Operation System** | **Status** | **Version**|
| :---------: | :-----------: | :-----------: |
| **Windows** | 🟢 Compatible | v1.3 |
| **Linux** | 🟢 Compatible | v1.3 |
| **Windows** | 🟢 Compatible | v1.3.1 |
| **Linux** | 🟢 Compatible | v1.3.1 |
| **MacOS** | 🟡 Not tested | x |

<br><br>
Expand Down
Binary file removed images/screenshot_win_v13.png
Binary file not shown.
Binary file added images/screenshot_win_v131.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 7 additions & 14 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self):
# ------------------------------------------- APP SETTINGS ------------------------------------------------- #
platform_name = platform.system()

self.title(f'Password Generator v1.3')
self.title(f'Password Generator v1.3.1')
self._set_appearance_mode('dark')
ctk.set_default_color_theme('green')
self.geometry('1070x640+200+200')
Expand All @@ -39,29 +39,23 @@ def __init__(self):

self.password_frame = ctk.CTkFrame(self, fg_color=('#ffffff', '#323332'), bg_color=('#ffffff', '#323332'),
corner_radius=0)
# self.password_frame.columnconfigure(all([0, 1]), minsize=40, weight=1)
# self.password_frame.rowconfigure(all([i for i in range(8)]), minsize=20)
self.password_frame.pack(fill='both', side='top', expand=True)

self.password = ctk.CTkEntry(self.password_frame, width=500, font=(fontname, 24))
self.password.grid(row=0, column=0, columnspan=5, padx=10, pady=10, stick='we')

# self.length = ctk.CTkEntry(self.password_frame, 250, 30, placeholder_text="Enter password length",
# font=(fontname, 20))
# self.length.grid(row=1, column=0, columnspan=2, pady=10, sticky='s')

self.password_lenght = 6

password_label = ctk.CTkLabel(self.password_frame, text="Password Length")
password_label.grid(row=1, column=0, padx=10, sticky='e')
password_label.grid(row=1, column=0, padx=10, pady=10, sticky='e')

self.lenght = ctk.CTkSlider(self.password_frame, from_=6, to=30, variable=ctk.IntVar(value=self.password_lenght),
width=100,
number_of_steps=24, command=self.update_password_lenght)
self.lenght.grid(row=1, column=1, sticky='w')
self.lenght_slider = ctk.CTkSlider(self.password_frame, from_=6, to=30, variable=ctk.IntVar(value=self.password_lenght),
width=120,
number_of_steps=24, command=self.update_password_lenght)
self.lenght_slider.grid(row=1, column=1, columnspan=2, sticky='we', padx=10, pady=10)

self.lenght_display = ctk.CTkLabel(self.password_frame, text=self.password_lenght)
self.lenght_display.grid(row=1, column=2, padx=0, pady=10, sticky='w')
self.lenght_display.grid(row=1, column=3, padx=(0,10), pady=10, sticky='w')

# -------------------------------- BUTTONS (GENERATE, CLEAR, COPY) ------------------------------------------ #

Expand Down Expand Up @@ -237,7 +231,6 @@ def open_about():

def update_password_lenght(self, value):
value = int(value)
print(value)
self.password_lenght = value
self.lenght_display.configure(text=value)

Expand Down

0 comments on commit 722532d

Please sign in to comment.