Skip to content

Commit 1c60563

Browse files
committed
Update help text and placeholders for page range inputs in MainApp
1 parent 5b2bb89 commit 1c60563

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def __init__(self):
319319
display_name="Selection",
320320
section_title="Page Ranges",
321321
placeholder="e.g., 1-3,5,6-9,11",
322-
help_text="Examples: 1-3,5,6-9,11 or 1,3,5 or 10-20",
322+
help_text="Specify individual pages and/or ranges separated by commas",
323323
core_func=trim_pdf,
324324
parse_input_func=parse_page_ranges,
325325
check_overwrite_func=check_overwrite_single_file,
@@ -345,7 +345,7 @@ def __init__(self):
345345
display_name="Image",
346346
section_title="Page Ranges",
347347
placeholder="e.g., 1-3,5,6-9,11",
348-
help_text="Examples: 1-3,5,6-9,11 or 1,3,5 or 10-20",
348+
help_text="Specify individual pages and/or ranges separated by commas",
349349
core_func=convert_to_images,
350350
parse_input_func=parse_page_ranges,
351351
check_overwrite_func=check_overwrite_multi_files,
@@ -470,14 +470,14 @@ def _create_mode_section(self):
470470
return group
471471

472472
def _create_page_section(self):
473-
group = QGroupBox("Page Ranges")
473+
group = QGroupBox(self.current_mode.section_title)
474474
layout = QVBoxLayout()
475475

476476
self.page_entry = QLineEdit()
477-
self.page_entry.setPlaceholderText("e.g., 1-3,5,6-9,11")
477+
self.page_entry.setPlaceholderText(self.current_mode.placeholder)
478478
layout.addWidget(self.page_entry)
479479

480-
self.help_label = QLabel("Examples: 1-3,5,6-9,11 or 1,3,5 or 10-20")
480+
self.help_label = QLabel(self.current_mode.help_text)
481481
self.help_label.setStyleSheet("color: #aaaaaa; font-size: 9pt;")
482482
layout.addWidget(self.help_label)
483483

0 commit comments

Comments
 (0)