From a7bf3b548b3ede0598380b33c72f99e7b925e7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 19 Oct 2020 17:24:30 +0200 Subject: [PATCH] GUI and md formatting --- README.md | 12 +++--------- index.html | 4 ++-- parse.js | 2 +- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index bb6375b..cfccd23 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Contents **   ** **5. Data:** **             ** **[`JSON`](#json)**__,__ **[`Pickle`](#pickle)**__,__ **[`CSV`](#csv)**__,__ **[`SQLite`](#sqlite)**__,__ **[`Bytes`](#bytes)**__,__ **[`Struct`](#struct)**__,__ **[`Array`](#array)**__,__ **[`Memory_View`](#memory-view)**__,__ **[`Deque`](#deque)**__.__ **   ** **6. Advanced:** **   ** **[`Threading`](#threading)**__,__ **[`Operator`](#operator)**__,__ **[`Introspection`](#introspection)**__,__ **[`Metaprograming`](#metaprograming)**__,__ **[`Eval`](#eval)**__,__ **[`Coroutines`](#coroutines)**__.__ **   ** **7. Libraries:** **      ** **[`Progress_Bar`](#progress-bar)**__,__ **[`Plot`](#plot)**__,__ **[`Table`](#table)**__,__ **[`Curses`](#curses)**__,__ **[`Logging`](#logging)**__,__ **[`Scraping`](#scraping)**__,__ **[`Web`](#web)**__,__ **[`Profile`](#profiling)**__,__ -**                                 ** **[`NumPy`](#numpy)**__,__ **[`Image`](#image)**__,__ **[`Audio`](#audio)**__,__ **[`Games`](#pygame)**__,__ **[`Data`](#pandas)**__,__ **[`GUI`](#gui)**__.__ +**                                 ** **[`NumPy`](#numpy)**__,__ **[`Image`](#image)**__,__ **[`Audio`](#audio)**__,__ **[`Games`](#pygame)**__,__ **[`Data`](#pandas)**__,__ **[`GUI`](#pysimplegui)**__.__ Main @@ -1196,7 +1196,6 @@ Hello World! Iterable Duck Types ------------------- - ### Iterable * **Only required method is iter(). It should return an iterator of object's items.** * **Contains() automatically works on any object that has iter() defined.** @@ -1342,7 +1341,6 @@ LogicOp = Enum('LogicOp', {'AND': partial(lambda l, r: l and r), Exceptions ---------- - ### Basic Example ```python try: @@ -2913,7 +2911,6 @@ simpleaudio.play_buffer(samples_b, 1, 2, F) Pygame ------ - ### Basic Example ```python # $ pip3 install pygame @@ -3068,7 +3065,6 @@ if __name__ == '__main__': Pandas ------ - ```python # $ pip3 install pandas import pandas as pd @@ -3347,7 +3343,6 @@ c 7 8 Plotly ------ - ```python # $ pip3 install plotly from plotly.express import line @@ -3425,8 +3420,8 @@ if __name__ == '__main__': ``` -GUI ---- +PySimpleGUI +----------- ```python # $ pip3 install PySimpleGUI import PySimpleGUI as sg @@ -3439,7 +3434,6 @@ print(f'Hello {values[0]}!') Appendix -------- - ### Cython **Library that compiles Python code into C.** diff --git a/index.html b/index.html index d775315..cfed481 100644 --- a/index.html +++ b/index.html @@ -227,7 +227,7 @@ pre.prettyprint { '5. Data': [JSON, Pickle, CSV, SQLite, Bytes, Struct, Array, Memory_View, Deque], '6. Advanced': [Threading, Operator, Introspection, Metaprograming, Eval, Coroutine], '7. Libraries': [Progress_Bar, Plot, Table, Curses, Logging, Scraping, Web, Profile, - NumPy, Image, Audio, Games, Data, GUI] + NumPy, Image, Audio, Games, Data, GUI] } @@ -2908,7 +2908,7 @@ line(df, x='Date', y= -

#GUI

# $ pip3 install PySimpleGUI
+

#PySimpleGUI

# $ pip3 install PySimpleGUI
 import PySimpleGUI as sg
 layout = [[sg.Text("What's your name?")], [sg.Input()], [sg.Button('Ok')]]
 window = sg.Window('Window Title', layout)
diff --git a/parse.js b/parse.js
index db16828..f4eebcd 100755
--- a/parse.js
+++ b/parse.js
@@ -26,7 +26,7 @@ const TOC =
   '    \'5. Data\':        [JSON, Pickle, CSV, SQLite, Bytes, Struct, Array, Memory_View, Deque],\n' +
   '    \'6. Advanced\':    [Threading, Operator, Introspection, Metaprograming, Eval, Coroutine],\n' +
   '    \'7. Libraries\':   [Progress_Bar, Plot, Table, Curses, Logging, Scraping, Web, Profile,\n' +
-  '                       NumPy, Image, Audio, Games, Data, GUI]\n' +
+  '                       NumPy, Image, Audio, Games, Data, GUI]\n' +
   '}\n' +
   '
\n';