Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yunyuyuan committed Jan 21, 2021
1 parent 0f09da6 commit a05086b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
* Python3.9
* PyQt5

## 使用

* 下载`renamable.rar`解压缩后,直接运行`renamable.exe`
* clone项目->`python main.py`
* clone项目->`pyinstaller -D -w -i=assets/icon.ico -n renamable main.py`
4 changes: 0 additions & 4 deletions src/components/body_file_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,3 @@ def do_rename(self, back_up):
return None
except BaseException as e:
return str(e)

def set_same_name_warn(self, name):
self.output_label.setProperty("same", "t" if name == self.output_name else "f")
update_css(self.output_label)
1 change: 0 additions & 1 deletion src/components/running.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def __init__(self, parent):
self.setLayout(layout)

def run(self, lis, backup):
lis = [x for x in range(15)]
self.progress.setMaximum(len(lis))
self.progress.setEnabled(True)
self.progress.setValue(0)
Expand Down
4 changes: 2 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from os.path import join, normpath
from os.path import join, normcase, sep

from PyQt5.Qt import *

Expand All @@ -15,4 +15,4 @@ def update_css(widget: QWidget):


def parse_path(*args):
return normpath(join(*args))
return normcase(join(*args))
2 changes: 1 addition & 1 deletion src/views/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def apply_files(self, dir_path, name_list):

def apply_regx(self):
input_, output_ = self.input_regx.text(), self.out_regx.text()
time_stamp = time.strftime("-[%Y-%m-%d %H:%M:%S]重命名", time.localtime())
time_stamp = time.strftime("--%Y-%m-%d %H-%M-%S重命名", time.localtime())
for i in self.files_widget_list:
try:
i.update_regx(input_, output_, self.back_up, time_stamp)
Expand Down

0 comments on commit a05086b

Please sign in to comment.