From 8378d142fc724e9d142d6f429d2cdc82b72d0e32 Mon Sep 17 00:00:00 2001 From: Peng Zhihui Date: Fri, 14 Feb 2014 14:12:56 +0800 Subject: [PATCH] Add some tips on the interface. modified: text/ri_newt.py --- text/ri_newt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/text/ri_newt.py b/text/ri_newt.py index 3a514e2..23d9051 100644 --- a/text/ri_newt.py +++ b/text/ri_newt.py @@ -378,7 +378,7 @@ class Raid(Screen): raidx = ['raid0','raid1','raid5'] Screen.widget_listbox(3, *raidx) - Screen.widget_buttonbar(Screen.buttonlist5) + Screen.widget_buttonbar(Screen.buttonlist0) Screen.widget_textboxreflowed(50, 'Please select make raidX\n%s\n%s' %(raid_text, fd_devices_text)) s = Screen.yesno(self.title, 1, 6, 'TextboxReflowed', 'eLabel', 'Listbox', 'eLabel', 'ButtonBar') @@ -406,11 +406,11 @@ class Raid(Screen): len_raid_choices = len(raid_choices) h = 5 if len(raid_choices) > 5 else len(raid_choices) - Screen.widget_buttonbar(Screen.buttonlist5) + Screen.widget_buttonbar(Screen.buttonlist0) Screen.listbox = Listbox(height=h, scroll=1) for i in raid_choices: Screen.listbox.append(i[0],i[0]) - Screen.widget_textboxreflowed(50, 'Please select make raidX\n%s' %(raid_text)) + Screen.widget_textboxreflowed(50, 'Please select raid wanted to delete\n%s' %(raid_text)) s = Screen.yesno(self.title, 1, 5, 'TextboxReflowed', 'eLabel', 'Listbox', 'eLabel', 'ButtonBar') @@ -454,7 +454,7 @@ class Raid(Screen): len_list = len(list) Screen.widget_listbox(len_list, *list) Screen.widget_buttonbar(Screen.buttonlist2) - Screen.widget_textboxreflowed(50, 'Please select make raidX\n%s\n%s' %(raid_text, fd_devices_text)) + Screen.widget_textboxreflowed(50, 'Tip:if have finished making raid or wanna skip making\n raid, you can press "Next" button to continue.\n\n%s\n%s' %(raid_text, fd_devices_text)) s = Screen.yesno(self.title, 1, 6, 'TextboxReflowed', 'eLabel', 'Listbox', 'eLabel', 'ButtonBar') @@ -616,7 +616,7 @@ class MountPoint(Screen): break Screen.widget_buttonbar(Screen.buttonlist3) - Screen.widget_textboxreflowed(50, 'There are five colums in the mount point display frame.\nDevice Mountpoint Filesystem Format Size') + Screen.widget_textboxreflowed(65, 'There are five colums in the mount point display frame:\n { Device Mountpoint Filesystem Format Size }\nTip: if you have finished configured mountpoint,you can press\n "Next" button to continue.') s = Screen.yesno(self.title, 1, 6, 'TextboxReflowed', 'CListbox', 'eLabel', 'ButtonBar') if s == 0: