Skip to content

Commit 46a5fda

Browse files
some folder removed from path
1 parent 40c7f12 commit 46a5fda

File tree

3 files changed

+48
-43
lines changed

3 files changed

+48
-43
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,24 @@ Python is an interpreted, high-level, general-purpose programming language. Crea
2424
## How To Run
2525

2626
- Put in Download Folder Or Wherever You want to automatically move the file and Just run
27-
- To use with GUI install Tkinter ```pip install tkinter```
27+
28+
For CLI
29+
```bash
30+
python filemover.py
31+
```
32+
For GUI
33+
```bash
34+
python filemovergui.py
35+
```
2836

2937
## Installation
3038

3139
- This is A python 3 package.
3240
- Install Python 3.0+ or Anaconda 3.0+
33-
- Run Normal file without any Additional package
3441

3542
## Usage
3643

37-
FileMover Is a Python program to move files automatically with the help of Python.
38-
Python is a scripting Language.
44+
FileMover Is a Python program to move files automatically with the help of Python. This will help you to manage your download folder for automatic cleanup.
3945

4046
## Support
4147

@@ -48,6 +54,7 @@ Want to Contribute in project.Check Github Contribution Guide.
4854
what's new in a future update
4955

5056
- More File Extension will be added soon
57+
- Contributions are welcome
5158

5259
## Contributing
5360

@@ -73,8 +80,8 @@ For open-source projects, Under MIT License.
7380

7481
## Author
7582

76-
- Module: python-move
77-
- Author : CodePerfectPlus
83+
- Module: FileMoverGUI
84+
- Author : Py-Contributors
7885
- Language: Python
7986
- Github: <https://github.com/codePerfectPlus>
8087
- Website: <http://codeperfectplus.herokuapp.com/>

FileMover.py renamed to filemover.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"Picture",
2222
"Video",
2323
"Documents",
24-
"Music",
25-
"CodePerfectPlus",
24+
"Music",
2625
]
2726
for root in paths:
2827
try:

FileMoverGUI.py renamed to filemovergui.py

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def create_folder():
2525
"Picture",
2626
"Video",
2727
"Documents",
28-
"Music",
29-
"CodePerfectPlus",
28+
"Music",
3029
]
3130
for root in paths:
3231
try:
@@ -43,7 +42,7 @@ def create_folder():
4342
app = [".exe", ".msi"]
4443
vid = [".mp4",".webm",".mkv",".MPG",".MP2",".MPEG",".MPE",".MPV",".OGG",".M4P",".M4V",
4544
".WMV",".MOV",".QT",".FLV",".SWF",".AVCHD",".avi",".mpg",".mpe",".mpeg",".asf",
46-
".wmv",".mov",".qt",".rm",]
45+
".wmv",".mov",".qt",".rm",]"CodePerfectPlus",
4746

4847
def start():
4948
for files in os.listdir():
@@ -70,42 +69,42 @@ def start():
7069
if ex == zips[i]:
7170
move(files, "Compressed")
7271

72+
if __name__ == "__main__":
73+
# Gui
74+
effects = tk.RAISED
7375

74-
# Gui
75-
effects = tk.RAISED
76+
window = tk.Tk()
7677

77-
window = tk.Tk()
78+
frame_a = tk.Frame(master=window, width=80, relief=effects, borderwidth=8)
79+
frame_b = tk.Frame(master=window, width=80, relief=effects, borderwidth=9)
7880

79-
frame_a = tk.Frame(master=window, width=80, relief=effects, borderwidth=8)
80-
frame_b = tk.Frame(master=window, width=80, relief=effects, borderwidth=9)
81+
frame_a.grid(row=1, column=1)
82+
frame_b.grid(row=2, column=1)
8183

82-
frame_a.grid(row=1, column=1)
83-
frame_b.grid(row=2, column=1)
84+
window.rowconfigure(2, minsize=300, weight=1)
85+
window.columnconfigure(1, minsize=300, weight=1)
8486

85-
window.rowconfigure(2, minsize=300, weight=1)
86-
window.columnconfigure(1, minsize=300, weight=1)
8787

88+
btn = tk.Button(
89+
master=frame_a,
90+
text="Create Folder",
91+
command=create_folder,
92+
bg="green",
93+
width=20,
94+
height=5,
95+
)
96+
btn2 = tk.Button(
97+
master=frame_b, text="Move Now", command=start, bg="red", width=20, height=5
98+
)
99+
lbl = tk.Label(
100+
master=window,
101+
text="Warning \n First Create Folder Then Click On Move",
102+
fg="red",
103+
bg="black",
104+
width=50,
105+
)
88106

89-
btn = tk.Button(
90-
master=frame_a,
91-
text="Create Folder",
92-
command=create_folder,
93-
bg="green",
94-
width=20,
95-
height=5,
96-
)
97-
btn2 = tk.Button(
98-
master=frame_b, text="Move Now", command=start, bg="red", width=20, height=5
99-
)
100-
lbl = tk.Label(
101-
master=window,
102-
text="Warning \n First Create Folder Then Click On Move",
103-
fg="red",
104-
bg="black",
105-
width=50,
106-
)
107-
108-
lbl.grid(row=0, column=1)
109-
btn.grid(row=1, column=0)
110-
btn2.grid(row=1, column=1)
111-
window.mainloop()
107+
lbl.grid(row=0, column=1)
108+
btn.grid(row=1, column=0)
109+
btn2.grid(row=1, column=1)
110+
window.mainloop()

0 commit comments

Comments
 (0)