Skip to content

Commit

Permalink
v1.1.2 vše
Browse files Browse the repository at this point in the history
  • Loading branch information
Otas02CZ committed Mar 28, 2022
1 parent f7d7b12 commit 390f6dd
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 16 deletions.
Binary file modified dist/leek.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion doc/jak_spustit_a_vyexportovat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Pokud něco nefunguje tak je potřeba přidat cestu k pythonu a aplikacím do pa

Pro zabalení jako .exe
- Pyinstaller - pokud jste nechali nainstalovat jako součást pythonu i pip tak zadáním v konzoli pip install pyinstaller
poté v adresáři kde je leek.py zadejte v konzoli pyinstaller leek.py --hidden-import rich --hidden-import os --hidden-import shutil --onefile
poté v adresáři kde je leek.py zadejte v konzoli
pyinstaller leek.py --onefile --hidden-import rich --hidden-import datetime --hidden-import operator --hidden-import shutil --hidden-import os
Binary file modified doc/leek_spravce_souboru.pdf
Binary file not shown.
Binary file modified doc/leek_spravce_souboru_dokumentace.zip
Binary file not shown.
Binary file added export/ProjektVPI-KociOtakar.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion export/ProjektVPI-KociOtakar/jak_spustit_a_vyexportovat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Pokud něco nefunguje tak je potřeba přidat cestu k pythonu a aplikacím do pa

Pro zabalení jako .exe
- Pyinstaller - pokud jste nechali nainstalovat jako součást pythonu i pip tak zadáním v konzoli pip install pyinstaller
poté v adresáři kde je leek.py zadejte v konzoli pyinstaller leek.py --hidden-import rich --hidden-import os --hidden-import shutil --onefile
poté v adresáři kde je leek.py zadejte v konzoli
pyinstaller leek.py --onefile --hidden-import rich --hidden-import datetime --hidden-import operator --hidden-import shutil --hidden-import os
28 changes: 14 additions & 14 deletions export/ProjektVPI-KociOtakar/leek.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
drive = "" # aktualni disk
direction = "" # kterym smerem se posunout mezi stranami
distance = 0 # o kolik se posunouti mezi stranami
version = "1.1.1" # verze programu
version = "1.1.2" # verze programu
author = "Otakar Kočí" # autor programu
year = "2022" # rok verze
type_select = "" # prepina mezi typem selectu
Expand All @@ -64,6 +64,7 @@
r_file_type = "" # druhy nazev nebo koncovka k prejmenovani vybrane polozky nebo take vybranych polozek
r_advanced = False # pouziva se funkce pocitadla pro prejmenovani
pre_select = "" # umisteni pred zobrazenim selectu
pre_search = "" # umisteni pred pred zobrazenim searchu
find = "" # hledany vyraz
sort_key = "none" # Podle jakého parametru seřaditi
sort_direction = "up" # Jakým směrem máme řaditi
Expand Down Expand Up @@ -235,9 +236,6 @@ def copy_file(source, destination) -> bool:
except:
return False

def search_file_or_folder(location, name): ################### NEHOTOVE
print("work")

def is_numeric(word) -> bool:
r"""
Vyzkouší jestli string word je validní číslo, pokud ano vrátí True, jinak False
Expand Down Expand Up @@ -624,14 +622,11 @@ def go_up():
errors.append("up_bad_input")
return
if location=="select":
if pre_select=="search":
location = "root"
else:
location = pre_select
up = 0
if location=="search":
location = pre_select
up = 0
return
if location=="search":
location = pre_search
return
while up>0:
for i in drives:
if i==location:
Expand Down Expand Up @@ -1444,7 +1439,7 @@ def do_search():
Výsledky vyhledávání zobrazí na vlastním listu
"""

global info, errors, find, search_result, location, pre_select
global info, errors, find, search_result, location, pre_select, pre_search

if location=="root":
search_result = []
Expand All @@ -1468,6 +1463,8 @@ def do_search():
for file in files:
if find in os.path.basename(file):
search_result.append(root+"\\"+file)
if find in os.path.basename(i):
search_result.append(i)
elif location=="search":
search_backup = search_result.copy()
search_result = []
Expand All @@ -1480,6 +1477,8 @@ def do_search():
for file in files:
if find in os.path.basename(file):
search_result.append(root+"\\"+file)
if find in os.path.basename(i):
search_result.append(i)
else:
search_result = []
for root, dirs, files in os.walk(location):
Expand All @@ -1490,8 +1489,9 @@ def do_search():
for file in files:
if find in os.path.basename(file):
search_result.append(root+"\\"+file)
pre_select = location
location = "search"
if location!="search":
pre_search = location
location = "search"
info.append("search_successful")

def check_and_set_sort():
Expand Down
Binary file modified export/ProjektVPI-KociOtakar/leek_spravce_souboru_dokumentace.zip
Binary file not shown.
Binary file modified release/ProjektVPI-KociOtakar.exe
Binary file not shown.
Binary file modified release/ProjektVPI-KociOtakar.pdf
Binary file not shown.
Binary file modified release/ProjektVPI-KociOtakar.zip
Binary file not shown.

0 comments on commit 390f6dd

Please sign in to comment.