Skip to content

Commit

Permalink
now we can move things around
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfdell authored May 27, 2023
1 parent e10655d commit 10c40cf
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 0 deletions.
4 changes: 4 additions & 0 deletions izpm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from translations.translation import Translation
from util.flush import flush_screen
from util.move import choose_translation_path

import os
import shutil

import keyboard

Expand Down
6 changes: 6 additions & 0 deletions menus/comment_menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import menu

class CommentSectionMenu(Menu):

def spawn(self):
pass
6 changes: 6 additions & 0 deletions menus/help_menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import menu

class HelpMenu(Menu):

def spawn(self):
pass
7 changes: 7 additions & 0 deletions menus/menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from abc import ABC, abstractmethod

class Menu(ABC):

@abstractmethod
def spawn():
pass
6 changes: 6 additions & 0 deletions menus/metadata_menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import menu

class MetadataMenu(Menu):

def spawn(self):
pass
6 changes: 6 additions & 0 deletions menus/showall_menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import menu

class ShowAllMenu(Menu):

def spawn(self):
pass
6 changes: 6 additions & 0 deletions menus/translation_menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import menu

class TranslationMenu(Menu):

def spawn(self):
pass
6 changes: 6 additions & 0 deletions menus/translationinfo_menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import menu

class TranslationInfoMenu(Menu):

def spawn(self):
pass
13 changes: 13 additions & 0 deletions util/move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Функция за преместване на настоящия файл в друга папка
def choose_translation_path(file):
print('\x1b[6;30;42m' + ' Моля, изберете къде да запазите превода ' + '\x1b[0m')
print("По подразбиране папката е настоящата")
path = input("Посочете папка: ")

if path.strip() == "":
pass

current = f"{file}"

shutil.move(current, path)
print("Файлът беше преместен успешно")

0 comments on commit 10c40cf

Please sign in to comment.