개정판 1d28f9e1
issue #000 get_work_sheet 함수 수정.
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
2330 | 2330 |
def get_work_sheet(self, work_book, count, total_count): |
2331 | 2331 |
page_no = math.ceil(count / total_count) |
2332 | 2332 |
works = [con for con in work_book.worksheets if "Page " in con.title] |
2333 |
ws = None
|
|
2333 |
ws = works[-1]
|
|
2334 | 2334 |
if len(works) > page_no: |
2335 | 2335 |
ws = work_book.get_sheet_by_name('Page ({})'.format(page_no)) |
2336 |
else: |
|
2337 |
ws = works[-1] |
|
2338 |
|
|
2339 | 2336 |
return ws |
2340 | 2337 |
|
2341 | 2338 |
def display_output(self): |
내보내기 Unified diff