forked from PySimpleGUI/PySimpleGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
432 lines (408 loc) · 25.4 KB
/
index.html
File metadata and controls
432 lines (408 loc) · 25.4 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../img/favicon.ico">
<title>Tutorial - My Docs</title>
<link href="../css/bootstrap-custom.min.css" rel="stylesheet">
<link href="../css/font-awesome.min.css" rel="stylesheet">
<link href="../css/base.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="../js/jquery-1.10.2.min.js" defer></script>
<script src="../js/bootstrap-3.0.3.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<!-- Collapsed navigation -->
<div class="navbar-header">
<!-- Expander button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="..">My Docs</a>
</div>
<!-- Expanded navigation -->
<div class="navbar-collapse collapse">
<!-- Main navigation -->
<ul class="nav navbar-nav">
<li >
<a href="..">Home</a>
</li>
<li >
<a href="../architecture/">Architecture</a>
</li>
<li >
<a href="../cookbook/">Cookbook</a>
</li>
<li class="active">
<a href="./">Tutorial</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
<i class="fa fa-search"></i> Search
</a>
</li>
<li >
<a rel="next" href="../cookbook/">
<i class="fa fa-arrow-left"></i> Previous
</a>
</li>
<li class="disabled">
<a rel="prev" >
Next <i class="fa fa-arrow-right"></i>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="col-md-3"><div class="bs-sidebar hidden-print affix well" role="complementary">
<ul class="nav bs-sidenav">
<li class="main active"><a href="#add-guis-to-your-programs-and-scripts-easily-with-pysimplegui">Add GUIs to your programs and scripts easily with PySimpleGUI</a></li>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#gui-frameworks">GUI Frameworks</a></li>
<li><a href="#the-secret">The Secret</a></li>
<li><a href="#what-is-a-gui">What is a GUI?</a></li>
<li><a href="#the-5-minute-gui">The 5-Minute GUI</a></li>
<li><a href="#the-5-line-gui">The 5-line GUI</a></li>
<li><a href="#making-your-custom-gui">Making Your Custom GUI</a></li>
<li><a href="#display-gui-get-results">Display GUI & Get Results</a></li>
<li><a href="#displaying-results">Displaying Results</a></li>
<li><a href="#putting-it-all-together">Putting It All Together</a></li>
<li><a href="#adding-a-gui-to-your-program-or-script">Adding a GUI to Your Program or Script</a></li>
<li><a href="#resources">Resources</a></li>
</ul>
</div></div>
<div class="col-md-9" role="main">
<p><img alt="pysimplegui_logo" src="https://user-images.githubusercontent.com/13696193/43165867-fe02e3b2-8f62-11e8-9fd0-cc7c86b11772.png" /></p>
<h1 id="add-guis-to-your-programs-and-scripts-easily-with-pysimplegui">Add GUIs to your programs and scripts easily with PySimpleGUI</h1>
<p>PySimpleGUI now supports BOTH Python 2.7 and Python 3</p>
<h2 id="introduction">Introduction</h2>
<p>Few people run Python programs by double clicking the .py file as if it were a .exe file. When a typical user (non-programmer types) double clicks an exe file, they expect it to pop open with a window they can interact with. While GUIs, using tkinter, are possible using standard Python installations, it's unlikely many programs do this. </p>
<p>What if it were easy so to open a Python program into a GUI that complete beginners could do it? Would anyone care? Would anyone use it? It's difficult to answer because to date it's not been "easy" to build a custom GUI. </p>
<p>There seems to be a gap in the ability to add a GUI onto a Python program/script. Complete beginners are left using only the command line and many advanced programmers don't want to take the time required to code up a tkinter GUI. </p>
<h2 id="gui-frameworks">GUI Frameworks</h2>
<p>There is no shortage of GUI frameworks for Python. tkinter, WxPython, Qt, Kivy are a few of the major packages. In addition, there are a good number of dumbed down GUI packages that wrap one of the major packages. These include EasyGUI, PyGUI, Pyforms, ... </p>
<p>The problem is that beginners (those with experience of less than 6 weeks) are not capable of learning even the simplest of the major packages. That leaves the wrapper-packages. Users will likely find it difficult or impossible to build a custom GUI layout using the smaller packages. </p>
<p>PySimpleGUI attempts to address these GUI challenges by providing a super-simple, easy to understand interface to GUIs that can be easily customized. Complex GUIs are often less than 20 lines of code when PySimpleGUI is used. </p>
<h2 id="the-secret">The Secret</h2>
<p>What makes PySimpleGUI superior for newcomers is that the package contains the majority of the code that the user is normally expected to write. Button callbacks are handled by PySimpleGUI, not the user's code. Beginners struggle to grasp the concept of a function, expecting them to understand a call-back function in the first few weeks is a stretch. </p>
<p>With some GUIs arranging the GUI Widgets often requires several lines of code.... at least one or two lines per widget. PySimpleGUI uses an "auto-packer" that creates the layout for the user automatically. There is no concept of a pack nor a grid system needed to layout a GUI Window. </p>
<p>Finally, PySimpleGUI leverages the Python language constructs in clever ways that shortens the amount of code and returns the GUI data in a straightforward manner. When a Widget is created in a window layout, it is configured in-place, not several lines of code away. Results are returned as a simple list or a dictionary. </p>
<h2 id="what-is-a-gui">What is a GUI?</h2>
<p>Most GUIs do one thing.... they collect information from the user and return it. From a programmer's viewpoint a GUI that collects information, like a window, could be summed up as a function call that looks like this: </p>
<pre><code>button, values = GUI_Display(gui_layout)
</code></pre>
<p>What's expected from most GUIs is the button that was clicked (OK, cancel, save, yes, no, etc), and the values that were input by the user. The essence of a GUI can be boiled down into a single line of code. </p>
<p>This is exactly how PySimpleGUI works (for these simple kinds of GUIs). When the call is made to display the GUI, execution does no return until a button is clicked that closes the window. </p>
<p>There are more complex GUIs such as those that don't close after a button is clicked. These resemble a windows program and also be created with PySimpleGUI. A remote control interface for a robot and a chat window are a couple of examples where you want to keep the window open after a button is clicked. </p>
<h2 id="the-5-minute-gui">The 5-Minute GUI</h2>
<p>When is PySimpleGUI useful? <strong><em>Immediately</em></strong>, anytime you've got a GUI need. It will take under 5 minutes for you to create and try your GUI. With those kinds of times, what do you have to lose trying it? </p>
<p>The best way to go about making your GUI in under 5 minutes is to copy one of the GUIs from the <a href="https://pysimplegui.readthedocs.io/en/latest/cookbook/">PySimpleGUI Cookbook</a>. Follow these steps: <br />
<em> Install PySimpleGUI (see short section in readme on installation)
</em> Find a GUI that looks similar to what you want to create <br />
<em> Copy code from Cookbook <br />
</em> Paste into your IDE and run </p>
<p>Let's look at the first recipe from the book </p>
<pre><code>import PySimpleGUI as sg
# Very basic window. Return values as a list
layout = [
[sg.Text('Please enter your Name, Address, Phone')],
[sg.Text('Name', size=(15, 1)), sg.InputText('name')],
[sg.Text('Address', size=(15, 1)), sg.InputText('address')],
[sg.Text('Phone', size=(15, 1)), sg.InputText('phone')],
[sg.Submit(), sg.Cancel()]
]
window = sg.Window('Simple data entry window').Layout(layout)
button, values = window.Read()
print(button, values[0], values[1], values[2])
</code></pre>
<p>It's a reasonably sized window. </p>
<p><img alt="super simple 2" src="https://user-images.githubusercontent.com/13696193/43934091-8100e29a-9c1b-11e8-8d0a-9bd2d13e6d8e.jpg" /> </p>
<p>If you only need to collect a few values and they're all basically strings, then you would copy this recipe and modify it to suit your needs. </p>
<h3 id="python-27-differences">Python 2.7 Differences</h3>
<p>The only noticeable difference between PySimpleGUI code running under Python 2.7 and one running on Python 3 is the import statement.</p>
<p>Python 3.x:</p>
<pre><code>import PySimpleGUI as sg
</code></pre>
<p>Python 2.7:</p>
<pre><code>import PySimpleGUI27 as sg
</code></pre>
<h2 id="the-5-line-gui">The 5-line GUI</h2>
<p>Not all GUIs take 5 minutes. Some take 5 lines of code. This is a GUI with a custom layout contained in 5 lines of code. </p>
<pre><code>import PySimpleGUI as sg
layout = [ [sg.Text('Enter your name'), sg.InputText()],
[sg.OK()] ]
window = sg.Window('My first GUI').Layout(layout)
button, (name,) = window.Read()
</code></pre>
<p><img alt="myfirstgui" src="https://user-images.githubusercontent.com/13696193/44315412-d2918c80-a3f1-11e8-9eda-0d5d9bfefb0f.jpg" /> </p>
<h2 id="making-your-custom-gui">Making Your Custom GUI</h2>
<p>If you find a Recipe similar to your project. You may be able to modify the code within 5 minutes in order to get to <em>your layout</em>, assuming you've got a straightforward layout. </p>
<p>Widgets are called Elements in PySimpleGUI. This list of Elements are spelled exactly as you would type it into your Python code. </p>
<h3 id="core-element-list">Core Element list</h3>
<pre><code> Buttons including these types:
File Browse
Folder Browse
Color chooser
Date picker
Read window
Close window
Realtime
Checkbox
Radio Button
Listbox
Slider
Multi-line Text Input
Scroll-able Output
Progress Bar
Option Menu
Image
Menu
Frame
Column
Graph
Table
Tabbed windows
Redirected Python Output/Errors to scrolling Window
</code></pre>
<p>You can also have short-cut Elements. There are 2 types of shortcuts. One is simply other names for the exact same element (e.g. T instead of Text). The second type configures an Element with particular setting, sparing the programmer from specifying all of the parameters (e.g. Submit is a button with the text "Submit" on it). </p>
<h3 id="shortcut-list">Shortcut list</h3>
<pre><code>T = Text
Txt = Text
In = InputText
Input = IntputText
Combo = DropDown = Drop = InputCombo
DropDown = InputCombo
Drop = InputCombo
OptionMenu = InputOptionMenu
CB - CBox = Check = Checkbox
RButton = ReadButton
Button = SimpleButton
</code></pre>
<p>A number of common buttons have been implemented as shortcuts. These include: </p>
<h3 id="button-shortcuts">Button Shortcuts</h3>
<pre><code>FolderBrowse
FileBrowse
FilesBrowse
FileSaveAs
Save
Open
Submit
OK
Ok
Cancel
Quit
Help
Exit
Yes
No
</code></pre>
<p>The more generic button functions, that are also shortcuts </p>
<h3 id="generic-buttons">Generic Buttons</h3>
<pre><code>Button
RButton (ReadButton)
RealtimeButton
</code></pre>
<p>These are all of the GUI Widgets you have to choose from. If it's not in this list, it doesn't go in your window layout. (Maybe... unless there's been an update with more features and this tutorial wasn't updated) </p>
<h3 id="gui-design-pattern">GUI Design Pattern</h3>
<p>The stuff that tends not to change in GUIs are the calls that setup and show the Window. It's the layout of the Elements that changes from one program to another. This is the code from above with the layout removed: </p>
<pre><code>import PySimpleGUI as sg
# Define your window here (it's a list of lists)
layout = [[ your layout ]]
window = sg.Window('Simple data entry window').Layout(layout)
button, values = window.Read()
</code></pre>
<p>The flow for most GUIs is: <br />
* Create the window object <br />
* Define GUI as a list of lists <br />
* Show the GUI and get results </p>
<p>Some windows act more like Windows programs. These windows have an "Event Loop". Please see the readme for more info on these kinds of windows (Persistent windows) </p>
<p>These are line for line what you see in design pattern above. </p>
<h3 id="gui-layout">GUI Layout</h3>
<p>To create your custom GUI, first break your window down into "rows". You'll be defining your window one row at a time. Then for each for, you'll be placing one Element after another, working from left to right. </p>
<p>The result is a "list of lists" that looks something like this: </p>
<pre><code>layout = [ [Text('Row 1')],
[Text('Row 2'), Checkbox('Checkbox 1', OK()), Checkbox('Checkbox 2'), OK()] ]
</code></pre>
<p>The layout produced this window: </p>
<p><img alt="tutorial2" src="https://user-images.githubusercontent.com/13696193/44302312-e5259c00-a2f3-11e8-9c17-63e4eb130a9e.jpg" /> </p>
<h2 id="display-gui-get-results">Display GUI & Get Results</h2>
<p>Once you have your layout complete and you've copied over the lines of code that setup and show the window, it's time to look at how to display the window and get the values from the user. </p>
<p>First get a window and display it. <br />
<code>window = sg.Window('Simple data entry window').Layout(layout)</code> </p>
<p>Then read the window to get the button clicked and values.: </p>
<pre><code>button, values = window.Read()
</code></pre>
<p>windows return 2 values, the text of the button that was clicked and a <strong><em>list of values</em></strong> the user entered into the window. More advanced windows return the values as a <strong>dictionary of values</strong>, </p>
<p>If the example window was displayed and the user did nothing other than click the OK button, then the results would have been: </p>
<pre><code>button == 'OK'
values == [False, False]
</code></pre>
<p>Checkbox Elements return a value of True/False. Because these checkboxes defaulted to unchecked, the values returned were both False. </p>
<h2 id="displaying-results">Displaying Results</h2>
<p>Once you have the values from the GUI it would be nice to check what values are in the variables. Rather than print them out using a <code>print</code> statement, let's stick with the GUI idea and output to a window. </p>
<p>PySimpleGUI has a number of Popup Windows to choose from. The data passed to the Popup will be displayed in a window. The function takes any number of arguments, just like a print call would. Simply pass in all the variables you would like to see in the call. </p>
<p>The most-commonly used display window is the <code>Popup</code>. To display the results of the previous example, one would write: </p>
<pre><code>Popup('The GUI returned:', button, values)
</code></pre>
<h2 id="putting-it-all-together">Putting It All Together</h2>
<p>Now that you know the basics, let's put together a window that contains as many PySimpleGUI's elements as possible. Also, just to give it a nice look, we'll change the "look and feel" to a green and tan color scheme. </p>
<pre><code>import PySimpleGUI as sg
sg.ChangeLookAndFeel('GreenTan')
column1 = [[sg.Text('Column 1', background_color='#d3dfda', justification='center', size=(10, 1))],
[sg.Spin(values=('Spin Box 1', '2', '3'), initial_value='Spin Box 1')],
[sg.Spin(values=('Spin Box 1', '2', '3'), initial_value='Spin Box 2')],
[sg.Spin(values=('Spin Box 1', '2', '3'), initial_value='Spin Box 3')]]
layout = [
[sg.Text('All graphic widgets in one window!', size=(30, 1), font=("Helvetica", 25))],
[sg.Text('Here is some text.... and a place to enter text')],
[sg.InputText('This is my text')],
[sg.Checkbox('My first checkbox!'), sg.Checkbox('My second checkbox!', default=True)],
[sg.Radio('My first Radio! ', "RADIO1", default=True), sg.Radio('My second Radio!', "RADIO1")],
[sg.Multiline(default_text='This is the default Text should you decide not to type anything', size=(35, 3)),
sg.Multiline(default_text='A second multi-line', size=(35, 3))],
[sg.InputCombo(('Combobox 1', 'Combobox 2'), size=(20, 3)),
sg.Slider(range=(1, 100), orientation='h', size=(34, 20), default_value=85)],
[sg.Listbox(values=('Listbox 1', 'Listbox 2', 'Listbox 3'), size=(30, 3)),
sg.Slider(range=(1, 100), orientation='v', size=(5, 20), default_value=25),
sg.Slider(range=(1, 100), orientation='v', size=(5, 20), default_value=75),
sg.Slider(range=(1, 100), orientation='v', size=(5, 20), default_value=10),
sg.Column(column1, background_color='#d3dfda')],
[sg.Text('_' * 80)],
[sg.Text('Choose A Folder', size=(35, 1))],
[sg.Text('Your Folder', size=(15, 1), auto_size_text=False, justification='right'),
sg.InputText('Default Folder'), sg.FolderBrowse()],
[sg.Submit(), sg.Cancel()]
]
window = sg.Window('Everything bagel', default_element_size=(40, 1)).Layout(layout)
button, values = window.Read()
sg.Popup(button, values)
</code></pre>
<p>That may seem like a lot of code, but try coding this same GUI layout using any other GUI framework and it will be lengthier and what you see here.... by a WIDE margin. 10's of times longer. </p>
<p><img alt="everything for tutorial" src="https://user-images.githubusercontent.com/13696193/44302997-38531b00-a303-11e8-8c45-698ea62590a8.jpg" /> </p>
<p>The last line of code opens a message box. This is how it looks: </p>
<p><img alt="tutorial results" src="https://user-images.githubusercontent.com/13696193/44303004-79e3c600-a303-11e8-8311-2f3726d364ad.jpg" /> </p>
<p>Each parameter to the message box call is displayed on a new line. There are actually 2 lines of text in the message box. The second line is very long and wrapped a number of times </p>
<p>Take a moment and pair up the results values with the GUI to get an understanding of how results are created and returned. </p>
<h2 id="adding-a-gui-to-your-program-or-script">Adding a GUI to Your Program or Script</h2>
<p>If you have a script that uses the command line, you don't have to abandon it in order to add a GUI. An easy solution is that if there are zero parameters given on the command line, then the GUI is run. Otherwise, execute the command line as you do today. </p>
<p>This kind of logic is all that's needed: </p>
<pre><code>if len(sys.argv) == 1:
# collect arguments from GUI
else:
# collect arguements from sys.argv
</code></pre>
<p>Copy one of the Recipes from the Cookbook and run it. See if it resembles something you would like to build: <br />
<a href="https://pysimplegui.readthedocs.io/en/latest/cookbook/">PySimpleGUI Cookbook</a> </p>
<p>Have some fun! Spice up the scripts you're tired of running by hand. Spend 5 or 10 minutes playing with the demo scripts. You may find one already exists that does exactly what you need. If not, you will find it's 'simple' to create your own. If you really get lost, you've only invested 10 minutes. </p>
<h2 id="resources">Resources</h2>
<h3 id="installation">Installation</h3>
<p>Requires Python 3 </p>
<pre><code>pip install PySimpleGUI
</code></pre>
<p>If on a Raspberry Pi or Linux, may need to do this instead: </p>
<pre><code>sudo pip3 install --upgrade pysimplegui
</code></pre>
<p>Works on all systems that run tkinter, including the Raspberry Pi </p>
<h3 id="documentation">Documentation</h3>
<p><a href="http://www.PySimpleGUI.org">Main manual</a> </p>
<p><a href="http://cookbook.PySimpleGUI.org">Cookbook</a> </p>
<p><a href="http://tutorial.pysimplegui.org">Tutorial</a> </p>
<h3 id="home-page-github">Home Page (GitHub)</h3>
<p><a href="http://www.PySimpleGUI.com">www.PySimpleGUI.com</a>
<!--stackedit_data:
eyJoaXN0b3J5IjpbLTEyODg5NTU4MjZdfQ==
--></p></div>
</div>
<footer class="col-md-12">
<hr>
<p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
</footer>
<script>
var base_url = "..",
shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83};
</script>
<script src="../js/base.js" defer></script>
<script src="../search/main.js" defer></script>
<div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="exampleModalLabel">Search</h4>
</div>
<div class="modal-body">
<p>
From here you can search these documents. Enter
your search terms below.
</p>
<form role="form">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
</div>
</form>
<div id="mkdocs-search-results"></div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="Keyboard Shortcuts Modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="exampleModalLabel">Keyboard Shortcuts</h4>
</div>
<div class="modal-body">
<table class="table">
<thead>
<tr>
<th style="width: 20%;">Keys</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td class="help shortcut"><kbd>?</kbd></td>
<td>Open this help</td>
</tr>
<tr>
<td class="next shortcut"><kbd>n</kbd></td>
<td>Next page</td>
</tr>
<tr>
<td class="prev shortcut"><kbd>p</kbd></td>
<td>Previous page</td>
</tr>
<tr>
<td class="search shortcut"><kbd>s</kbd></td>
<td>Search</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</body>
</html>