Skip to content

Commit 69579aa

Browse files
committed
Version 1.0.0-b.2. Added an icon and info about it
1 parent a2fa8a9 commit 69579aa

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
<a> <img src="imgs/Dark_blue_new.png"> </a>
1313
</h1>
1414

15-
## TODO:
16-
* Upload packages
17-
* Create the icon
15+
## NOTE:
16+
This program is in beta version and I am not responsible if something bad happens
1817

1918
## How it works
2019
You select the folder where you want to sort the files. A "Sorted" folder is created in this folder, and folders are created in it by file type (Photos, videos, etc.) Then the files are moved to them. (I wonder if anyone will understand this explanation?)

app.py

+20-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self, master=None):
2828

2929
# Configure window
3030
self.title("Information")
31-
self.geometry("240x200")
31+
self.geometry("240x240")
3232
self.resizable(False, False)
3333

3434
# Fonts
@@ -37,7 +37,7 @@ def __init__(self, master=None):
3737
large_font = ctk.CTkFont("Roboto Medium", 24)
3838

3939
# Frame
40-
self.frame = ctk.CTkFrame(self, width= 200, height = 160)
40+
self.frame = ctk.CTkFrame(self, width= 200, height = 180)
4141
self.frame.grid(padx = 20, pady = 20)
4242

4343
# Program name
@@ -51,7 +51,7 @@ def __init__(self, master=None):
5151
self.version_label = ctk.CTkLabel (master=self.frame, font=small_font,
5252
width=200, height=30,
5353
anchor="center",
54-
text="Version: 1.0.0-b.1")
54+
text="Version: 1.0.0-b.2")
5555
self.version_label.grid(row=1, column=0)
5656

5757
# License
@@ -74,14 +74,27 @@ def __init__(self, master=None):
7474
anchor="center",
7575
text="Source code",
7676
command=self.github_link)
77-
self.github_button.grid(row=4, column=0, pady=4)
77+
self.github_button.grid(row=4, column=0, pady=10)
78+
79+
# Icon
80+
self.icon_info = ctk.CTkButton(master=self.frame, font=small_font,
81+
width= 100, height=20,
82+
anchor="center",
83+
text="The info about icon",
84+
command=self.github_link)
85+
self.icon_info.grid(row=5, column=0, pady=4)
7886

7987

8088
# Opening a link to the repository
8189
def github_link(self):
82-
link = "https://github.com/nikallow/Python-File-Sorter"
83-
webbrowser.open(link)
84-
90+
github_link = "https://github.com/nikallow/Python-File-Sorter"
91+
webbrowser.open(github_link)
92+
93+
# Opening a link to the info about icon (ii)
94+
def icon_info_link(self):
95+
ii_link = ("https://github.com/nikallow/Python-File-Sorter/tree/main/"
96+
"icon/license.md")
97+
webbrowser.open(ii_link)
8598

8699

87100
class App(ctk.CTk):

icon/icon.ico

11 KB
Binary file not shown.

icon/license.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This icon is licensed under CC Attribution
2+
The author: Sergei Kokota
3+
Source: [click](https://icon-icons.com/icon/brush-paint/53290)

imgs/Dark_blue.png

-4.67 KB
Binary file not shown.

imgs/Dark_blue_old.png

-4.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)