Add some tips on the interface.

modified:   text/ri_newt.py
This commit is contained in:
Peng Zhihui
2014-02-14 14:12:56 +08:00
parent 99c32ef85c
commit 8378d142fc

View File

@@ -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: