Mercurial > libervia-web
comparison browser_side/register.py @ 43:a7ff1e6f1229
browser_side: prevent default for escape key (cancel HTTPRequest in FF)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 25 May 2011 14:21:48 +0200 |
parents | 71a9cc9b9d57 |
children | c3ee630914ba |
comparison
equal
deleted
inserted
replaced
42:71a9cc9b9d57 | 43:a7ff1e6f1229 |
---|---|
46 self.setMethod(FormPanel.METHOD_POST) | 46 self.setMethod(FormPanel.METHOD_POST) |
47 vPanel = VerticalPanel() | 47 vPanel = VerticalPanel() |
48 vPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER) | 48 vPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER) |
49 self.loginBox = TextBox() | 49 self.loginBox = TextBox() |
50 self.loginBox.setName("login") | 50 self.loginBox.setName("login") |
51 self.loginBox.setText("goffi_local") | |
52 self.passBox = PasswordTextBox() | 51 self.passBox = PasswordTextBox() |
53 self.passBox.setName("password") | 52 self.passBox.setName("password") |
54 self.passBox.setText("toto") | |
55 grid = Grid(2, 2) | 53 grid = Grid(2, 2) |
56 grid.setText(0,0,"Login:") | 54 grid.setText(0,0,"Login:") |
57 grid.setWidget(0,1, self.loginBox) | 55 grid.setWidget(0,1, self.loginBox) |
58 grid.setText(1,0, "Password:") | 56 grid.setText(1,0, "Password:") |
59 grid.setWidget(1,1, self.passBox) | 57 grid.setWidget(1,1, self.passBox) |