@@ 280-295 (lines=16) @@ | ||
277 | self.win.vCancel.text = _("Quit") |
|
278 | self.win.vText.text = text |
|
279 | ||
280 | def createUI(self): |
|
281 | w, h = gdata.scrnSize |
|
282 | self.win = ui.Window(self.app, |
|
283 | modal = 1, |
|
284 | movable = 0, |
|
285 | title = _('Outer Space Update Available'), |
|
286 | rect = ui.Rect((w - 424) / 2, (h - 144) / 2, 424, 144), |
|
287 | layoutManager = ui.SimpleGridLM(), |
|
288 | ) |
|
289 | self.win.subscribeAction('*', self) |
|
290 | ui.Text(self.win, layout = (5, 0, 16, 4), id = 'vText', background = self.win.app.theme.themeBackground, editable = 0) |
|
291 | ui.ProgressBar(self.win, layout = (0, 4, 21, 1), id = 'vProgress') |
|
292 | ui.Label(self.win, layout = (0, 0, 5, 4), icons = ((res.loginLogoImg, ui.ALIGN_W),)) |
|
293 | ui.Title(self.win, layout = (0, 5, 13, 1), id = 'vStatusBar', align = ui.ALIGN_W) |
|
294 | ui.TitleButton(self.win, layout = (13, 5, 4, 1), id = 'vCancel', text = _("No"), action = 'onCancel') |
|
295 | ui.TitleButton(self.win, layout = (17, 5, 4, 1), id = 'vConfirm', text = _("Yes"), action = 'onConfirm') |
|
296 |
@@ 82-97 (lines=16) @@ | ||
79 | def setTitle(self, title): |
|
80 | self.win.title = title |
|
81 | ||
82 | def createUI(self): |
|
83 | w, h = gdata.scrnSize |
|
84 | self.win = ui.Window(self.app, |
|
85 | modal = 1, |
|
86 | movable = 0, |
|
87 | title = _('Question'), |
|
88 | rect = ui.Rect((w - 424) / 2, (h - 124) / 2, 424, 124), |
|
89 | layoutManager = ui.SimpleGridLM(), |
|
90 | ) |
|
91 | self.win.subscribeAction('*', self) |
|
92 | ui.Text(self.win, layout = (5, 0, 16, 3), id = 'vText', background = self.win.app.theme.themeBackground, editable = 0) |
|
93 | ui.Label(self.win, layout = (0, 0, 5, 4), icons = ((res.loginLogoImg, ui.ALIGN_W),)) |
|
94 | ui.Title(self.win, layout = (0, 4, 13, 1), id = 'vStatusBar', align = ui.ALIGN_W) |
|
95 | ui.Check(self.win, layout = (17, 3, 4, 1), text = _('I agree'), id = 'vAgree', action = 'onAgree') |
|
96 | ui.TitleButton(self.win, layout = (13, 4, 4, 1), id = 'vCancel', action = 'onCancel') |
|
97 | ui.TitleButton(self.win, layout = (17, 4, 4, 1), id = 'vConfirm', action = 'onConfirm') |
|
98 |