-
Notifications
You must be signed in to change notification settings - Fork 0
/
brushup.html
47 lines (41 loc) · 3.26 KB
/
brushup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>BrushUp!: module brushup</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>brushup</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href="index.html">index</a><br></font></td></tr></table>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="LoginPage">class <strong>LoginPage</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Main class. This is the class that the user has to execute to start the app.<br>
<br>
In this class, a window to log in / sign up is created<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="LoginPage-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Once this class is executed, this function is run. <br>
<br>
This method creates the window in which the user can log in or sign up <br>
<br>
The self is defined</tt></dd></dl>
<dl><dt><a name="LoginPage-createUser"><strong>createUser</strong></a>(self, user, password)</dt><dd><tt>This method proceeds to create a new user. It involves creating a new <br>
database, modifying the properties file and adding the word "brush up" <br>
inside the database that has just been create<br>
<br>
Args:<br>
user: user name for the new user<br>
password: password for the new user</tt></dd></dl>
<dl><dt><a name="LoginPage-login"><strong>login</strong></a>(self)</dt><dd><tt>This method checks if the credentials provided match any user<br>
in the database "users.db"</tt></dd></dl>
<dl><dt><a name="LoginPage-raise_frame"><strong>raise_frame</strong></a>(self, frame)</dt><dd><tt>Raises a new frame inside the window</tt></dd></dl>
<dl><dt><a name="LoginPage-signup"><strong>signup</strong></a>(self)</dt><dd><tt>Checks if a provided user name already exists before proceeding to<br>
create the user.</tt></dd></dl>
</body></html>