mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-01 11:41:30 +00:00
Prelim: Render progress in the right place
This commit is contained in:
@@ -221,7 +221,6 @@ def wsetup_step_install_base(stdscr):
|
||||
wsetup_screen_write_direct(
|
||||
stdscr,
|
||||
wsetup_screen_get_scaled_y(stdscr, WSETUP_MAIN_Y + 3),
|
||||
wsetup_screen_get_scaled_x(stdscr, 40) - 22,
|
||||
" Please wait while Setup copies files \n" +
|
||||
" to the Windows installation folders. \n" +
|
||||
"This might take several minutes to complete.",
|
||||
@@ -306,10 +305,13 @@ def wsetup_step_install_base(stdscr):
|
||||
if not cmd_out.startswith("pmstatus"):
|
||||
continue
|
||||
|
||||
progress = str(int(cmd_out.split(":")[2])) + "%"
|
||||
|
||||
wsetup_screen_write_simple(
|
||||
stdscr,
|
||||
1, 0,
|
||||
cmd_out.split(":")[2],
|
||||
box_y + 1,
|
||||
wsetup_screen_get_scaled_x(stdscr, 40) - 2,
|
||||
progress,
|
||||
curses.color_pair(COLOR_PAIR_NORMAL_TEXT)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user