51
51
52
52
ExceptionInfo = Tuple [Type [BaseException ], BaseException , TracebackType ]
53
53
54
+ SCROLL_PROMPT = "(up/down scrolls)"
55
+
54
56
55
57
class Controller :
56
58
"""
@@ -246,11 +248,11 @@ def exit_popup(self) -> None:
246
248
self .loop .widget = self .view
247
249
248
250
def show_help (self ) -> None :
249
- help_view = HelpView (self , "Help Menu (up/down scrolls) " )
251
+ help_view = HelpView (self , f "Help Menu { SCROLL_PROMPT } " )
250
252
self .show_pop_up (help_view , "area:help" )
251
253
252
254
def show_markdown_help (self ) -> None :
253
- markdown_view = MarkdownHelpView (self , "Markdown Help Menu (up/down scrolls) " )
255
+ markdown_view = MarkdownHelpView (self , f "Markdown Help Menu { SCROLL_PROMPT } " )
254
256
self .show_pop_up (markdown_view , "area:help" )
255
257
256
258
def show_topic_edit_mode (self , button : Any ) -> None :
@@ -266,7 +268,7 @@ def show_msg_info(
266
268
msg_info_view = MsgInfoView (
267
269
self ,
268
270
msg ,
269
- "Message Information (up/down scrolls) " ,
271
+ f "Message Information { SCROLL_PROMPT } " ,
270
272
topic_links ,
271
273
message_links ,
272
274
time_mentions ,
@@ -315,7 +317,10 @@ def show_about(self) -> None:
315
317
def show_user_info (self , user_id : int ) -> None :
316
318
self .show_pop_up (
317
319
UserInfoView (
318
- self , user_id , "User Information (up/down scrolls)" , "USER_INFO"
320
+ self ,
321
+ user_id ,
322
+ f"User Information { SCROLL_PROMPT } " ,
323
+ "USER_INFO" ,
319
324
),
320
325
"area:user" ,
321
326
)
@@ -325,7 +330,7 @@ def show_msg_sender_info(self, user_id: int) -> None:
325
330
UserInfoView (
326
331
self ,
327
332
user_id ,
328
- "Message Sender Information (up/down scrolls) " ,
333
+ f "Message Sender Information { SCROLL_PROMPT } " ,
329
334
"MSG_SENDER_INFO" ,
330
335
),
331
336
"area:user" ,
@@ -345,7 +350,7 @@ def show_full_rendered_message(
345
350
topic_links ,
346
351
message_links ,
347
352
time_mentions ,
348
- "Full rendered message (up/down scrolls) " ,
353
+ f "Full rendered message { SCROLL_PROMPT } " ,
349
354
),
350
355
"area:msg" ,
351
356
)
@@ -364,7 +369,7 @@ def show_full_raw_message(
364
369
topic_links ,
365
370
message_links ,
366
371
time_mentions ,
367
- "Full raw message (up/down scrolls) " ,
372
+ f "Full raw message { SCROLL_PROMPT } " ,
368
373
),
369
374
"area:msg" ,
370
375
)
@@ -383,7 +388,7 @@ def show_edit_history(
383
388
topic_links ,
384
389
message_links ,
385
390
time_mentions ,
386
- "Edit History (up/down scrolls) " ,
391
+ f "Edit History { SCROLL_PROMPT } " ,
387
392
),
388
393
"area:msg" ,
389
394
)
0 commit comments