-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.html
127 lines (112 loc) · 6.51 KB
/
gui.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gui</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<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>gui</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Volumes/Expansion/Studia/github/uni/Python/project/gui.py">/Volumes/Expansion/Studia/github/uni/Python/project/gui.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="pickle.html">pickle</a><br>
</td><td width="25%" valign=top><a href="pygame.html">pygame</a><br>
</td><td width="25%" valign=top><a href="random.html">random</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td></tr></table></td></tr></table><p>
<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>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="gui.html#GUI">GUI</a>
</font></dt><dt><font face="helvetica, arial"><a href="gui.html#Tile">Tile</a>
</font></dt></dl>
</dd>
</dl>
<p>
<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="GUI">class <strong>GUI</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Handle game's interface.<br>
<br>
Use PyGame library.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="GUI-__init__"><strong>__init__</strong></a>(self, sudoku=None)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="GUI-on_check"><strong>on_check</strong></a>(self)</dt><dd><tt>Check whether current sudoku is solvable.<br>
<br>
If it is solvable, tiles become green. If it isn't - red.</tt></dd></dl>
<dl><dt><a name="GUI-on_give_hint"><strong>on_give_hint</strong></a>(self)</dt><dd><tt>Place random tile from solution.</tt></dd></dl>
<dl><dt><a name="GUI-on_load"><strong>on_load</strong></a>(self)</dt></dl>
<dl><dt><a name="GUI-on_new_game"><strong>on_new_game</strong></a>(self)</dt><dd><tt>Update sudoku and board on <a href="#GUI">GUI</a> with new sudoku board.</tt></dd></dl>
<dl><dt><a name="GUI-on_save"><strong>on_save</strong></a>(self)</dt></dl>
<dl><dt><a name="GUI-on_solve"><strong>on_solve</strong></a>(self)</dt><dd><tt>Show solution to sudoku.<br>
<br>
Pre-filled tiles stay black.</tt></dd></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
</td></tr></table> <p>
<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="Tile">class <strong>Tile</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Represent one tile (cell) of sudoku board.<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Tile-__init__"><strong>__init__</strong></a>(self, value, x, y, sudoku_i, sudoku_j, size)</dt><dd><tt>Initialize self. See help(type(self)) for accurate signature.</tt></dd></dl>
<dl><dt><a name="Tile-toggle_highlight"><strong>toggle_highlight</strong></a>(self)</dt></dl>
<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary for instance variables (if defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list of weak references to the object (if defined)</tt></dd>
</dl>
<dl><dt><strong>board_coordinates</strong></dt>
</dl>
<dl><dt><strong>font_color</strong></dt>
</dl>
<dl><dt><strong>value</strong></dt>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>CHECK</strong> = 'CHECK'<br>
<strong>COLORS</strong> = {'black': (0, 0, 0, 0), 'blue': (0, 85, 220, 0), 'green': (20, 200, 20, 0), 'lightblue': (120, 180, 255, 0), 'red': (200, 20, 20, 0), 'white': (255, 255, 255, 0)}<br>
<strong>DIFFICULTY</strong> = 'medium'<br>
<strong>FONT</strong> = 'images/bebas.ttf'<br>
<strong>HEIGHT</strong> = 650<br>
<strong>HINT</strong> = 'HINT!'<br>
<strong>LOAD</strong> = 'LOAD'<br>
<strong>MENU_FONT_COLOR</strong> = (255, 255, 255, 0)<br>
<strong>NEW_GAME</strong> = 'NEW GAME'<br>
<strong>SAVE</strong> = 'SAVE'<br>
<strong>SOLVE</strong> = 'SOLVE'<br>
<strong>SUDOKUX</strong> = 10<br>
<strong>SUDOKUY</strong> = 250<br>
<strong>WIDTH</strong> = 400</td></tr></table>
</body></html>