Skip to content

Commit

Permalink
Delete change name feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaboav committed Mar 3, 2024
1 parent 04bbdfa commit d028e77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 31 deletions.
13 changes: 2 additions & 11 deletions praproses/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from frontend.Interface import ChoiceDialog
from backend.TakeImg import TakeImg
from backend.ColorSelector import Color
from backend.ChangeName import ChangeName
from variable import CAMERA_INDEX, CAMERA_WIDTH, CAMERA_HEIGHT, NAME_FORMATING
from variable import CAMERA_INDEX, CAMERA_WIDTH, CAMERA_HEIGHT


if __name__ == "__main__":
Expand All @@ -21,12 +20,4 @@

elif choice == 'Pilih warna':
excute = Color(camera=CAMERA_INDEX, width=CAMERA_WIDTH, height=CAMERA_HEIGHT)
excute.run()

elif choice == 'Ubah nama':
if folder_path:
# example of name format -> test-{}.jpg
excute = ChangeName(folder_path=folder_path, name_format=NAME_FORMATING)
excute.run()
else:
msg.showerror('Error', 'No Folder Path!')
excute.run()
19 changes: 0 additions & 19 deletions praproses/backend/ChangeName.py

This file was deleted.

2 changes: 1 addition & 1 deletion praproses/frontend/Interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create_popup(self):
def popup_component(self, GUI):
info = Label(GUI, text="Pilih Operasi Yang ingin dilakukan:")
info.pack(pady=5)
choices = ['Ambil gambar', 'Pilih warna', 'Ubah nama']
choices = ['Ambil gambar', 'Pilih warna']

# button setting
button_frame = Frame(GUI)
Expand Down

0 comments on commit d028e77

Please sign in to comment.