Skip to content
Snippets Groups Projects
Commit f25024e7 authored by Dennis Baurichter's avatar Dennis Baurichter
Browse files

rename: Resize confirmation dialog buttons

... to fit into the screen width
parent d5765fbe
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ import random
# On creation, the activity is given no additional information besides the
# curses window to operate in. Initializing it prior to use introduces the
# old and new file names to be shown to the user.
# Execution finally returns either True or False, idicating confirmation or
# Execution finally returns either True or False, indicating confirmation or
# canceling of the renaming operation.
#
# The lifecycle of this classe's instances follow the principle behind
......@@ -102,12 +102,12 @@ class ConfirmNameActivity:
w2=(w1-2)//2
wnd.addstr(
y,0,"%sJA%s"%(" "*w2," "*(w1-w2)),
y,0,"%sJA%s"%(" "*w2," "*w2),
s.attr_yes|(curses.A_STANDOUT if s.choice==True else 0))
w2=(w1-4)//2
wnd.addstr(
y,w1,"%sNEIN%s"%(" "*w2," "*(w1-w2)),
y,w1,"%sNEIN%s"%(" "*w2," "*w2),
s.attr_no|(curses.A_STANDOUT if s.choice==False else 0))
s._scr.refresh()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment