This commit is contained in:
Envy_PC 2024-05-16 16:34:37 +09:00
parent 5069a0ba05
commit d060e38c32
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import sys
import os
import os, sys
import pandas as pd
import random
import configparser
@ -9,6 +8,8 @@ from PyQt5.QtWidgets import (
QSpinBox
)
from PyQt5.QtCore import Qt, QThread, pyqtSignal
import xlwings as xw # xlwings 모듈 임포트
import traceback # traceback 모듈 임포트
class CommaSpinBox(QSpinBox):
@ -62,7 +63,8 @@ class ExportThread(QThread):
if self.shuffle_title:
chunk['상품명'] = chunk['상품명'].apply(self.shuffle_title_words)
output_file = os.path.join(self.output_folder, f"{self.original_file_name}_percenty-{i//chunk_size + 1:02d}")
# output_file = os.path.join(self.output_folder, f"{self.original_file_name}_percenty-{i//chunk_size + 1:02d}")
output_file = os.path.join(self.output_folder, f"{os.path.splitext(self.original_file_name)[0]}_percenty-{i//chunk_size + 1:02d}.xlsx")
# Create a DataFrame with exactly 50 rows, filling with empty values if necessary
if len(chunk) < chunk_size:
@ -147,7 +149,7 @@ class ExcelProcessorApp(QWidget):
self.source_file_path = None
def initUI(self):
self.setWindowTitle('Excel Processor')
self.setWindowTitle('WRMC TaomanXLS')
self.setGeometry(100, 100, 300, 650)
self.setFixedSize(300, 650)
@ -240,7 +242,7 @@ class ExcelProcessorApp(QWidget):
main_layout.addLayout(log_layout)
# Footer layout with developer label
self.developer_label = QLabel('제작자: Your Name')
self.developer_label = QLabel('by 내차는 언제타냐')
main_layout.addWidget(self.developer_label, alignment=Qt.AlignCenter)
self.setLayout(main_layout)

Binary file not shown.