comparison browser_side/register.py @ 42:71a9cc9b9d57

Browser side: Tarot game - draw game managed - we can now play continuously \o/
author Goffi <goffi@goffi.org>
date Mon, 23 May 2011 00:45:19 +0200
parents c725b702e927
children a7ff1e6f1229
comparison
equal deleted inserted replaced
41:7782a786b2f0 42:71a9cc9b9d57
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")
51 self.passBox = PasswordTextBox() 52 self.passBox = PasswordTextBox()
52 self.passBox.setName("password") 53 self.passBox.setName("password")
54 self.passBox.setText("toto")
53 grid = Grid(2, 2) 55 grid = Grid(2, 2)
54 grid.setText(0,0,"Login:") 56 grid.setText(0,0,"Login:")
55 grid.setWidget(0,1, self.loginBox) 57 grid.setWidget(0,1, self.loginBox)
56 grid.setText(1,0, "Password:") 58 grid.setText(1,0, "Password:")
57 grid.setWidget(1,1, self.passBox) 59 grid.setWidget(1,1, self.passBox)