├── .gitignore ├── .idea ├── .gitignore ├── Python-UI-Collection.iml ├── aws.xml ├── inspectionProfiles │ ├── Project_Default.xml │ └── profiles_settings.xml ├── misc.xml ├── modules.xml ├── other.xml └── vcs.xml ├── .travis.yml ├── Kivy ├── Snippets │ ├── MD_graph.py │ ├── animated_graph.py │ ├── file_editor │ │ ├── editor.kv │ │ └── main.py │ ├── graph_objects.py │ ├── loop_clock │ │ ├── loop.kv │ │ └── loop.py │ └── tooltips │ │ ├── layout.kv │ │ └── tooltip_test.py └── Template │ ├── GUI.ini │ ├── GUI.py │ ├── docs │ ├── Makefile │ ├── _build │ │ ├── doctrees │ │ │ ├── environment.pickle │ │ │ └── index.doctree │ │ └── html │ │ │ ├── .buildinfo │ │ │ ├── _sources │ │ │ └── index.rst.txt │ │ │ ├── _static │ │ │ ├── alabaster.css │ │ │ ├── basic.css │ │ │ ├── custom.css │ │ │ ├── doctools.js │ │ │ ├── documentation_options.js │ │ │ ├── file.png │ │ │ ├── jquery-3.5.1.js │ │ │ ├── jquery.js │ │ │ ├── language_data.js │ │ │ ├── minus.png │ │ │ ├── plus.png │ │ │ ├── pygments.css │ │ │ ├── searchtools.js │ │ │ ├── underscore-1.13.1.js │ │ │ └── underscore.js │ │ │ ├── genindex.html │ │ │ ├── index.html │ │ │ ├── objects.inv │ │ │ ├── search.html │ │ │ └── searchindex.js │ ├── conf.py │ ├── index.rst │ └── make.bat │ ├── layouts │ ├── root.kv │ └── style.kv │ ├── library │ └── kivy_utils.py │ ├── requirements.txt │ └── static │ ├── Barlow-Bold.ttf │ ├── Barlow-BoldItalic.ttf │ ├── Barlow-Medium.ttf │ ├── Barlow-MediumItalic.ttf │ ├── bar_bright.png │ ├── bar_dark.png │ ├── bg_bright.jpg │ ├── bg_dark.jpg │ ├── horizontal_line_blue.png │ ├── icon.ico │ ├── logo_bright.png │ ├── logo_dark.png │ ├── logo_splash.jpg │ └── settings_menu.json ├── LICENSE ├── README.md └── TKinter ├── Bitpanda ├── crypto_api.py ├── crypto_gui.py └── requirements.txt ├── DatabaseAdmin ├── gui.py └── requirements.txt ├── Snippets ├── DungeonsAndDragons │ ├── Island_AngelaMaps-1024x768.jpg │ └── dnd.py ├── draw_polygon_color.py ├── frame_change_background_color.py ├── redirect_console_to_textbox.py ├── resize_window_locked_aspects.py ├── rightclick_menu_copy_paste.py ├── table_app.py ├── table_app_lite.py ├── table_app_lite_minimal.py └── text_editor.py └── Template ├── GUI.py ├── docs ├── Makefile ├── make.bat └── source │ ├── conf.py │ ├── doc_backend.rst │ ├── doc_frontend.rst │ └── index.rst ├── lib └── utilities.py ├── requirements.txt ├── static └── icon_dev.ico └── test_file.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | 131 | .idea/ 132 | 133 | # Tkinter template stuff 134 | TKinter/Template/config.ini 135 | !Tkinter/Template/lib 136 | TKinter/Bitpanda/config.ini 137 | TKinter/DatabaseAdmin/config.ini 138 | 139 | # Kivy template stuff 140 | Kivy/Template/leysolutions.ini -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /.idea/Python-UI-Collection.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 15 | -------------------------------------------------------------------------------- /.idea/aws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/other.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | os: 2 | - linux 3 | 4 | dist: xenial 5 | 6 | services: 7 | - xvfb 8 | 9 | language: python 10 | 11 | python: 12 | - 3.7 13 | - 3.8 14 | - 3.9 15 | 16 | before_install: 17 | - python -m pip install --upgrade pip 18 | - cd TKinter 19 | - cd Template 20 | install: 21 | - pip install -r requirements.txt 22 | 23 | script: python3 GUI.py || python GUI.py 24 | -------------------------------------------------------------------------------- /Kivy/Snippets/MD_graph.py: -------------------------------------------------------------------------------- 1 | from kivy.lang import Builder 2 | from kivy.uix.boxlayout import BoxLayout 3 | from kivy.properties import ObjectProperty 4 | from kivymd.app import MDApp 5 | import matplotlib.pyplot as plt 6 | 7 | from kivy.garden.graph import Graph, SmoothLinePlot 8 | 9 | KV = ''' 10 | : 11 | 12 | orientation: "vertical" 13 | padding: "8dp" 14 | spacing: "8dp" 15 | 16 | 17 | Screen: 18 | MDToolbar: 19 | id: toolbar 20 | pos_hint: {"top": 1} 21 | elevation: 10 22 | title: "MDNavigationDrawer" 23 | left_action_items: [["menu", lambda x: nav_drawer.set_state("open")]] 24 | MDNavigationLayout: 25 | x: toolbar.height 26 | 27 | ScreenManager: 28 | id: screen_manager 29 | 30 | Screen: 31 | name: "scr Home" 32 | 33 | BoxLayout: 34 | orientation: 'vertical' 35 | pos_hint: {'center_x': 0.5, 'center_y': 0.68} 36 | size_hint_x: 0.50 37 | 38 | MDLabel: 39 | text: "Events" 40 | halign: "center" 41 | 42 | MDRaisedButton: 43 | id: start 44 | pos_hint: {'center_x': 0.5, 'center_y': 0.5} 45 | text: 'Go to screen Chart' 46 | on_press: 47 | app.root.ids.screen_manager.current = "scr Chart" 48 | 49 | 50 | Screen: 51 | name: "scr Chart" 52 | 53 | BoxLayout: 54 | orientation: 'vertical' 55 | pos_hint: {'center_x': 0.5, 'center_y': 0.68} 56 | size_hint_x: 0.50 57 | 58 | MDLabel: 59 | text: "Chart" 60 | halign: "center" 61 | 62 | MDRaisedButton: 63 | id: start 64 | pos_hint: {'center_x': 0.5, 'center_y': 0.5} 65 | text: 'Back to Home' 66 | on_press: 67 | app.root.ids.screen_manager.current = "scr Home" 68 | 69 | MDRaisedButton: 70 | id: showChartID 71 | pos_hint: {'center_x': 0.9, 'center_y': 0.6} 72 | text: 'Show Chart' 73 | on_press: app.showChart() 74 | 75 | 76 | BoxLayout: 77 | id: plotChartLayoutID 78 | orientation: "vertical" 79 | spacing: "10dp" 80 | size_hint: 1, 0.4 81 | 82 | 83 | MDNavigationDrawer: 84 | id: nav_drawer 85 | 86 | ContentNavigationDrawer: 87 | screen_manager: screen_manager 88 | nav_drawer: nav_drawer 89 | 90 | 91 | ''' 92 | 93 | plt.plot([1, 23, 2, 4]) 94 | plt.ylabel('some numbers') 95 | 96 | class ContentNavigationDrawer(BoxLayout): 97 | screen_manager = ObjectProperty() 98 | nav_drawer = ObjectProperty() 99 | 100 | class TestNavigationDrawer(MDApp): 101 | 102 | def showChart(self): 103 | 104 | samplePoints = [(1, -1.853308), (2, -0.294635), (3, 0.741659), (4, 1.533998), (5, -0.979925), (6, 0.929095), (7, 0.21097), (8, -0.255225), (9, -0.087132), (10, 0.276493), (11, 0.214625), (12, -0.544198), (13, 0.637738), (14, -1.217626), (15, -1.219405), (16, 0.577283), (17, -1.294635), (18, -0.452743), (19, 0.36668200000000006), (20, 0.886161), (21, 0.75048), (22, 0.654791), (23, -3.001915), (24, 0.240651), (25, 0.547257), (26, 1.927036), (27, -1.796374), (28, -0.416351), (29, 1.226682), (30, 0.67815)] 105 | 106 | graph = Graph(xlabel='X', ylabel='Y', x_ticks_minor=1, x_ticks_major=1, y_ticks_major=1, 107 | y_grid_label=True, x_grid_label=True, padding=5, 108 | x_grid=True, y_grid=True, xmin=-0, xmax=30, ymin=-3, ymax=3) 109 | 110 | graph.background_color = 0, 0, 0, 1 # black color 111 | plot = SmoothLinePlot(color=[1, 0, 0, 1]) 112 | 113 | plot.points = samplePoints 114 | graph.add_plot(plot) 115 | 116 | self.root.ids.plotChartLayoutID.add_widget(graph) 117 | 118 | 119 | def build(self): 120 | return Builder.load_string(KV) 121 | 122 | if __name__=="__main__": 123 | TestNavigationDrawer().run() -------------------------------------------------------------------------------- /Kivy/Snippets/animated_graph.py: -------------------------------------------------------------------------------- 1 | from kivy.app import App 2 | import numpy as np 3 | from math import sqrt, exp 4 | from kivy.garden.graph import Graph, SmoothLinePlot 5 | from kivy.clock import Clock 6 | from kivy.uix.boxlayout import BoxLayout 7 | from kivy.uix.label import Label 8 | from kivy.animation import Animation 9 | 10 | 11 | class myApp(App): 12 | lbl=Label(text="0", size_hint_y=0.3) 13 | 14 | S0=50 15 | mu=0.05 16 | sig=0.3 17 | dt=1/365 18 | 19 | 20 | 21 | graph=Graph( 22 | xmin=0, 23 | xmax=50, 24 | ymin=0, 25 | ymax=100, 26 | x_ticks_major=50, 27 | y_ticks_major=10, 28 | tick_color=[0.06,0.06,0.06,1], 29 | draw_border=False, 30 | x_grid=True, 31 | y_grid=True 32 | ) 33 | 34 | 35 | 36 | plot2 = SmoothLinePlot(color=[1, 0, 0, 1]) 37 | plot2.opacity = 0 38 | first_point=(0,50) 39 | plot2.points=[first_point] 40 | graph.add_plot(plot2) 41 | event=None 42 | St=S0 43 | 44 | def on_start(self): 45 | self.event=Clock.schedule_interval(self.update_plot, 1/60) 46 | 47 | def build(self): 48 | bl=BoxLayout(orientation="vertical") 49 | bl.add_widget(self.lbl) 50 | bl.add_widget(self.graph) 51 | return bl 52 | 53 | def update_plot(self, *ARGS): 54 | drift=(self.mu-self.sig*self.sig*0.5)*self.dt 55 | epsilon=np.random.normal() 56 | var=epsilon*self.sig*sqrt(self.dt) 57 | self.St=self.St*exp(drift+var) 58 | last_x2=self.plot2.points[len(self.plot2.points)-1][0] 59 | new_point2=(last_x2+1, self.St) 60 | self.plot2.points.append(new_point2) 61 | self.lbl.text=str(last_x2) 62 | if last_x2+1==self.graph.xmax: 63 | Clock.unschedule(self.event) 64 | self.lbl.text=str("Clocking stopped") 65 | anim=Animation(opacity=1, duration=5) #<-- problem here 66 | anim.start(self.plot2) 67 | 68 | 69 | myApp().run() -------------------------------------------------------------------------------- /Kivy/Snippets/file_editor/editor.kv: -------------------------------------------------------------------------------- 1 | #:kivy 1.1.0 2 | 3 | Root: 4 | text_input: text_input 5 | 6 | BoxLayout: 7 | orientation: 'vertical' 8 | BoxLayout: 9 | size_hint_y: None 10 | height: 30 11 | Button: 12 | text: 'Load' 13 | on_release: root.show_load() 14 | Button: 15 | text: 'Save' 16 | on_release: root.show_save() 17 | 18 | BoxLayout: 19 | TextInput: 20 | id: text_input 21 | text: '' 22 | 23 | RstDocument: 24 | text: text_input.text 25 | show_errors: True 26 | 27 | : 28 | BoxLayout: 29 | size: root.size 30 | pos: root.pos 31 | orientation: "vertical" 32 | FileChooserListView: 33 | id: filechooser 34 | 35 | BoxLayout: 36 | size_hint_y: None 37 | height: 30 38 | Button: 39 | text: "Cancel" 40 | on_release: root.cancel() 41 | 42 | Button: 43 | text: "Load" 44 | on_release: root.load(filechooser.path, filechooser.selection) 45 | 46 | : 47 | text_input: text_input 48 | BoxLayout: 49 | size: root.size 50 | pos: root.pos 51 | orientation: "vertical" 52 | FileChooserListView: 53 | id: filechooser 54 | on_selection: text_input.text = self.selection and self.selection[0] or '' 55 | 56 | TextInput: 57 | id: text_input 58 | size_hint_y: None 59 | height: 30 60 | multiline: False 61 | 62 | BoxLayout: 63 | size_hint_y: None 64 | height: 30 65 | Button: 66 | text: "Cancel" 67 | on_release: root.cancel() 68 | 69 | Button: 70 | text: "Save" 71 | on_release: root.save(filechooser.path, text_input.text) -------------------------------------------------------------------------------- /Kivy/Snippets/file_editor/main.py: -------------------------------------------------------------------------------- 1 | from kivy.app import App 2 | from kivy.uix.floatlayout import FloatLayout 3 | from kivy.factory import Factory 4 | from kivy.properties import ObjectProperty 5 | from kivy.uix.popup import Popup 6 | 7 | import os 8 | 9 | 10 | class LoadDialog(FloatLayout): 11 | load = ObjectProperty(None) 12 | cancel = ObjectProperty(None) 13 | 14 | 15 | class SaveDialog(FloatLayout): 16 | save = ObjectProperty(None) 17 | text_input = ObjectProperty(None) 18 | cancel = ObjectProperty(None) 19 | 20 | 21 | class Root(FloatLayout): 22 | loadfile = ObjectProperty(None) 23 | savefile = ObjectProperty(None) 24 | text_input = ObjectProperty(None) 25 | 26 | def dismiss_popup(self): 27 | self._popup.dismiss() 28 | 29 | def show_load(self): 30 | content = LoadDialog(load=self.load, cancel=self.dismiss_popup) 31 | self._popup = Popup(title="Load file", content=content, 32 | size_hint=(0.9, 0.9)) 33 | self._popup.open() 34 | 35 | def show_save(self): 36 | content = SaveDialog(save=self.save, cancel=self.dismiss_popup) 37 | self._popup = Popup(title="Save file", content=content, 38 | size_hint=(0.9, 0.9)) 39 | self._popup.open() 40 | 41 | def load(self, path, filename): 42 | with open(os.path.join(path, filename[0])) as stream: 43 | self.text_input.text = stream.read() 44 | 45 | self.dismiss_popup() 46 | 47 | def save(self, path, filename): 48 | with open(os.path.join(path, filename), 'w') as stream: 49 | stream.write(self.text_input.text) 50 | 51 | self.dismiss_popup() 52 | 53 | 54 | class Editor(App): 55 | pass 56 | 57 | 58 | Factory.register('Root', cls=Root) 59 | Factory.register('LoadDialog', cls=LoadDialog) 60 | Factory.register('SaveDialog', cls=SaveDialog) 61 | 62 | 63 | if __name__ == '__main__': 64 | Editor().run() -------------------------------------------------------------------------------- /Kivy/Snippets/graph_objects.py: -------------------------------------------------------------------------------- 1 | ''' 2 | Lines Extended Demo 3 | =================== 4 | 5 | This demonstrates how to use the extended line drawing routines such 6 | as circles, ellipses, and rectangles. You should see a static image of 7 | labelled shapes on the screen. 8 | ''' 9 | 10 | from kivy.app import App 11 | from kivy.uix.gridlayout import GridLayout 12 | from kivy.uix.widget import Widget 13 | from kivy.lang import Builder 14 | 15 | Builder.load_string(''' 16 | : 17 | canvas: 18 | Color: 19 | rgba: 1, .1, .1, .9 20 | Line: 21 | width: 2. 22 | ellipse: (self.x, self.y, self.width, self.height) 23 | Label: 24 | center: root.center 25 | text: 'Ellipse' 26 | 27 | : 28 | canvas: 29 | Color: 30 | rgba: 1, .1, .1, .9 31 | Line: 32 | width: 2. 33 | ellipse: (self.x, self.y, self.width, self.height, 90, 180) 34 | Label: 35 | center: root.center 36 | text: 'Ellipse from 90 to 180' 37 | 38 | # fun result with low segments! 39 | : 40 | canvas: 41 | Color: 42 | rgba: 1, .1, .1, .9 43 | Line: 44 | width: 2. 45 | ellipse: (self.x, self.y, self.width, self.height, 90, 720, 10) 46 | Label: 47 | center: root.center 48 | text: 'Ellipse from 90 to 720\\n10 segments' 49 | halign: 'center' 50 | 51 | : 52 | canvas: 53 | Color: 54 | rgba: .1, 1, .1, .9 55 | Line: 56 | width: 2. 57 | circle: 58 | (self.center_x, self.center_y, min(self.width, self.height) 59 | / 2) 60 | Label: 61 | center: root.center 62 | text: 'Circle' 63 | 64 | : 65 | canvas: 66 | Color: 67 | rgba: .1, 1, .1, .9 68 | Line: 69 | width: 2. 70 | circle: 71 | (self.center_x, self.center_y, min(self.width, self.height) 72 | / 2, 90, 180) 73 | Label: 74 | center: root.center 75 | text: 'Circle from 90 to 180' 76 | 77 | : 78 | canvas: 79 | Color: 80 | rgba: .1, 1, .1, .9 81 | Line: 82 | width: 2. 83 | circle: 84 | (self.center_x, self.center_y, min(self.width, self.height) 85 | / 2, 90, 180, 10) 86 | Label: 87 | center: root.center 88 | text: 'Circle from 90 to 180\\n10 segments' 89 | halign: 'center' 90 | 91 | : 92 | canvas: 93 | Color: 94 | rgba: .1, 1, .1, .9 95 | Line: 96 | width: 2. 97 | circle: 98 | (self.center_x, self.center_y, min(self.width, self.height) 99 | / 2, 0, 360) 100 | Label: 101 | center: root.center 102 | text: 'Circle from 0 to 360' 103 | halign: 'center' 104 | 105 | : 106 | canvas: 107 | Color: 108 | rgba: .1, .1, 1, .9 109 | Line: 110 | width: 2. 111 | rectangle: (self.x, self.y, self.width, self.height) 112 | Label: 113 | center: root.center 114 | text: 'Rectangle' 115 | 116 | : 117 | canvas: 118 | Color: 119 | rgba: .1, .1, 1, .9 120 | Line: 121 | width: 2. 122 | bezier: 123 | (self.x, self.y, self.center_x - 40, self.y + 100, 124 | self.center_x + 40, self.y - 100, self.right, self.y) 125 | Label: 126 | center: root.center 127 | text: 'Bezier' 128 | ''') 129 | 130 | 131 | class LineEllipse1(Widget): 132 | pass 133 | 134 | 135 | class LineEllipse2(Widget): 136 | pass 137 | 138 | 139 | class LineEllipse3(Widget): 140 | pass 141 | 142 | 143 | class LineCircle1(Widget): 144 | pass 145 | 146 | 147 | class LineCircle2(Widget): 148 | pass 149 | 150 | 151 | class LineCircle3(Widget): 152 | pass 153 | 154 | 155 | class LineCircle4(Widget): 156 | pass 157 | 158 | 159 | class LineRectangle(Widget): 160 | pass 161 | 162 | 163 | class LineBezier(Widget): 164 | pass 165 | 166 | 167 | class LineExtendedApp(App): 168 | def build(self): 169 | root = GridLayout(cols=2, padding=50, spacing=50) 170 | root.add_widget(LineEllipse1()) 171 | root.add_widget(LineEllipse2()) 172 | root.add_widget(LineEllipse3()) 173 | root.add_widget(LineCircle1()) 174 | root.add_widget(LineCircle2()) 175 | root.add_widget(LineCircle3()) 176 | root.add_widget(LineCircle4()) 177 | root.add_widget(LineRectangle()) 178 | root.add_widget(LineBezier()) 179 | return root 180 | 181 | 182 | if __name__ == '__main__': 183 | LineExtendedApp().run() -------------------------------------------------------------------------------- /Kivy/Snippets/loop_clock/loop.kv: -------------------------------------------------------------------------------- 1 | 2 | BoxLayout: 3 | orientation: 'vertical' 4 | size: root.height, root.width 5 | 6 | Label: 7 | id: label_print 8 | font_size: 32 9 | Button: 10 | text: 'Loop' 11 | on_press: root.loop() -------------------------------------------------------------------------------- /Kivy/Snippets/loop_clock/loop.py: -------------------------------------------------------------------------------- 1 | from kivy.app import App 2 | from kivy.core.window import Window 3 | from kivy.lang import Builder 4 | from kivy.uix.widget import Widget 5 | from kivy.clock import Clock 6 | 7 | Window.size=(300,300) 8 | Builder.load_file('loop.kv') 9 | 10 | 11 | class MyLayout(Widget): 12 | loop_thread = None 13 | 14 | def callback_to_loop(self, dt): 15 | try: 16 | current = int(self.ids.label_print.text) 17 | except Exception as e: 18 | print(e) 19 | current = 0 20 | self.ids.label_print.text = str(current+1) 21 | if current == 11: 22 | Clock.unschedule(self.loop_thread) 23 | 24 | def loop(self): 25 | self.loop_thread = Clock.schedule_interval(self.callback_to_loop, 1) 26 | 27 | 28 | class LoopApp(App): 29 | def build(self): 30 | return MyLayout() 31 | 32 | if __name__=='__main__': 33 | LoopApp().run() -------------------------------------------------------------------------------- /Kivy/Snippets/tooltips/layout.kv: -------------------------------------------------------------------------------- 1 | : 2 | size_hint: None, None 3 | size: self.texture_size[0]+5, self.texture_size[1]+5 4 | canvas.before: 5 | Color: 6 | rgb: 0.2, 0.2, 0.2 7 | Rectangle: 8 | size: self.size 9 | pos: self.pos 10 | 11 | : 12 | orientation: 'vertical' 13 | TTLabel: 14 | text: "Im a label" 15 | tooltip: "And im your tooltip" 16 | TTLabel: 17 | text: "Im just an ordinary label" 18 | TTButton: 19 | text: "Im a button" 20 | on_release: root.test_function() 21 | tooltip: "Click it for some action" 22 | TTSlider: 23 | tooltip: "Current value: " + str(round(self.value, 2)) 24 | TTSwitch: 25 | tooltip: ["Switch is off", "Switch is on"][self.active] -------------------------------------------------------------------------------- /Kivy/Snippets/tooltips/tooltip_test.py: -------------------------------------------------------------------------------- 1 | """Demo App to demonstrate tooltip functionality for Labels, Buttons, Slider and Switches""" 2 | 3 | from kivy.properties import BooleanProperty, ObjectProperty 4 | from kivy.uix.button import Button 5 | from kivy.uix.label import Label 6 | from kivy.uix.slider import Slider 7 | from kivy.uix.switch import Switch 8 | from kivy.app import App 9 | from kivy.core.window import Window 10 | from kivy.lang import Builder 11 | from kivy.uix.boxlayout import BoxLayout 12 | from kivy.clock import Clock 13 | from kivy.uix.popup import Popup 14 | 15 | 16 | class Tooltip(Label): 17 | pass 18 | 19 | 20 | class HoverBehavior(object): 21 | """Hover behavior. 22 | :Events: 23 | `on_enter` 24 | Fired when mouse enter the bbox of the widget. 25 | `on_leave` 26 | Fired when the mouse exit the widget 27 | """ 28 | 29 | hovered = BooleanProperty(False) 30 | border_point = ObjectProperty(None) 31 | 32 | def __init__(self, **kwargs): 33 | self.register_event_type('on_enter') 34 | self.register_event_type('on_leave') 35 | Window.bind(mouse_pos=self.on_mouse_pos) # for recognizing tooltips 36 | super(HoverBehavior, self).__init__(**kwargs) 37 | 38 | def on_mouse_pos(self, *args): 39 | if not self.get_root_window(): 40 | return 41 | pos = args[1] 42 | inside = self.collide_point(*self.to_widget(*pos)) # compensate for relative layout 43 | if self.hovered == inside: 44 | return 45 | self.border_point = pos 46 | self.hovered = inside 47 | if inside: 48 | self.dispatch('on_enter') 49 | else: 50 | self.dispatch('on_leave') 51 | 52 | def on_enter(self): 53 | pass 54 | 55 | def on_leave(self): 56 | pass 57 | 58 | 59 | class TTLabel(HoverBehavior, Label): 60 | """Resizable Label with Tooltip, inherits Label and HoverBehaviour class""" 61 | 62 | def __init__(self, **kwargs): 63 | super().__init__() 64 | self.tooltip = None # Attribute set in kv file 65 | self.markup = True 66 | self.tooltip_wdg = Tooltip() 67 | 68 | def on_enter(self): 69 | """Event fires when entering widget""" 70 | if self.tooltip: # only binds event if tooltip variable is set 71 | Window.bind(mouse_pos=lambda w, p: setattr(self.tooltip_wdg, 'pos', p)) # binds position to cursor 72 | self.tooltip_wdg.text = self.tooltip # sets text to tooltip variable 73 | Window.add_widget(self.tooltip_wdg) 74 | 75 | def on_leave(self): 76 | """Event fires when leaving widget""" 77 | if self.tooltip: 78 | Window.remove_widget(self.tooltip_wdg) 79 | 80 | 81 | class TTButton(HoverBehavior, Button): 82 | """Resizable Button with Tooltip""" 83 | def __init__(self, **kwargs): 84 | super().__init__() 85 | self.tooltip = None # Attribute set in kv file 86 | self.markup = True 87 | self.tooltip_wdg = Tooltip() 88 | 89 | def on_enter(self): 90 | """Event fires when entering widget""" 91 | if self.tooltip: # only binds event if tooltip variable is set 92 | Window.bind(mouse_pos=lambda w, p: setattr(self.tooltip_wdg, 'pos', p)) # binds position to cursor 93 | self.tooltip_wdg.text = self.tooltip # sets text to tooltip variable 94 | Window.add_widget(self.tooltip_wdg) 95 | 96 | def on_leave(self): 97 | """Event fires when leaving widget""" 98 | if self.tooltip: 99 | Window.remove_widget(self.tooltip_wdg) 100 | 101 | 102 | class TTSwitch(HoverBehavior, Switch): 103 | """Switch with Tooltip""" 104 | def __init__(self, **kwargs): 105 | super().__init__() 106 | self.tooltip = None 107 | self.tooltip_wdg = Tooltip() 108 | self.bind(active=self.refresh_tooltip) # refresh tooltip on value change 109 | 110 | def on_enter(self): 111 | if self.tooltip: # only binds event if tooltip variable is set 112 | Window.bind(mouse_pos=lambda w, p: setattr(self.tooltip_wdg, 'pos', p)) # binds position to cursor 113 | self.tooltip_wdg.text = self.tooltip # sets text to tooltip variable 114 | Window.add_widget(self.tooltip_wdg) 115 | 116 | def on_leave(self): 117 | if self.tooltip: 118 | Window.remove_widget(self.tooltip_wdg) 119 | 120 | def refresh_tooltip(self, *args): 121 | if self.tooltip: 122 | Clock.schedule_once(self.refresh_tooltip_callback) 123 | 124 | def refresh_tooltip_callback(self, dt): 125 | self.tooltip_wdg.text = self.tooltip 126 | 127 | 128 | class TTSlider(HoverBehavior, Slider): 129 | """Slider with Tooltip""" 130 | def __init__(self, **kwargs): 131 | super().__init__() 132 | self.tooltip = None 133 | self.tooltip_wdg = Tooltip() 134 | Window.bind(on_touch_up=self.on_touch_up) # refresh tooltip on mouse up 135 | 136 | def on_enter(self): 137 | if self.tooltip: # only binds event if tooltip variable is set 138 | Window.bind(mouse_pos=lambda w, p: setattr(self.tooltip_wdg, 'pos', p)) # binds position to cursor 139 | self.tooltip_wdg.text = self.tooltip # sets text to tooltip variable 140 | Window.add_widget(self.tooltip_wdg) 141 | 142 | def on_leave(self): 143 | if self.tooltip: 144 | Window.remove_widget(self.tooltip_wdg) 145 | 146 | def on_touch_up(self, *args): 147 | if self.tooltip: 148 | self.tooltip_wdg.text = self.tooltip 149 | # add callback here if wanted 150 | 151 | 152 | class Root(BoxLayout): 153 | """ Root class for callbacks, UI building etc.""" 154 | 155 | def __init__(self): 156 | super().__init__() 157 | 158 | def test_function(self): 159 | print("Seems like i am working") 160 | 161 | 162 | class UI(App): 163 | """App class, access attributes from .kv files via app.attribute_name""" 164 | 165 | def __init__(self, **kwargs): 166 | super().__init__() 167 | self.root: BoxLayout = None 168 | self.splash_popup: Popup = None 169 | 170 | def build(self): 171 | self.root = Root() 172 | return Root() 173 | 174 | def on_pause(self): 175 | return True 176 | 177 | 178 | if __name__ == "__main__": 179 | Builder.load_file("layout.kv") 180 | UI().run() 181 | -------------------------------------------------------------------------------- /Kivy/Template/GUI.ini: -------------------------------------------------------------------------------- 1 | [kivy] 2 | keyboard_repeat_delay = 300 3 | keyboard_repeat_rate = 30 4 | log_dir = logs 5 | log_enable = 0 6 | log_level = debug 7 | log_name = kivy_%y-%m-%d_%_.txt 8 | window_icon = static/icon.ico 9 | keyboard_mode = system 10 | keyboard_layout = qwerty 11 | desktop = 1 12 | exit_on_escape = 0 13 | pause_on_minimize = 0 14 | kivy_clock = default 15 | default_font = ['Barlow', 'static/Barlow-Medium.ttf', 'static/Barlow-MediumItalic.ttf', 'static/Barlow-Bold.ttf', 'static/Barlow-BoldItalic.ttf'] 16 | log_maxfiles = 100 17 | window_shape = data/images/defaultshape.png 18 | config_version = 21 19 | 20 | [graphics] 21 | display = -1 22 | fullscreen = 0 23 | height = 720 24 | left = 0 25 | maxfps = 0 26 | multisamples = 2 27 | position = auto 28 | rotation = 0 29 | show_cursor = 1 30 | top = 0 31 | width = 1280 32 | resizable = 1 33 | borderless = 0 34 | window_state = visible 35 | minimum_width = 400 36 | minimum_height = 300 37 | min_state_time = .035 38 | allow_screensaver = 1 39 | shaped = 0 40 | 41 | [input] 42 | mouse = mouse,disable_multitouch,disable_on_activity 43 | wm_touch = wm_touch 44 | wm_pen = wm_pen 45 | 46 | [postproc] 47 | double_tap_distance = 20 48 | double_tap_time = 250 49 | ignore = [] 50 | jitter_distance = 0 51 | jitter_ignore_devices = mouse,mactouch, 52 | retain_distance = 50 53 | retain_time = 0 54 | triple_tap_distance = 20 55 | triple_tap_time = 375 56 | 57 | [widgets] 58 | scroll_timeout = 250 59 | scroll_distance = 20 60 | scroll_friction = 1. 61 | scroll_stoptime = 300 62 | scroll_moves = 5 63 | 64 | [modules] 65 | 66 | [network] 67 | useragent = curl 68 | 69 | 70 | -------------------------------------------------------------------------------- /Kivy/Template/GUI.py: -------------------------------------------------------------------------------- 1 | """Kivy demo app with screen-manager, splash screen, tooltips, resizable widgets """ 2 | 3 | # %% standard python library imports 4 | import os 5 | import sys 6 | import psutil 7 | import platform 8 | if platform.system() == "Windows": 9 | import win32console # hide console 10 | import win32gui # hide console 11 | import win32con # hide console 12 | 13 | # %% kivy imports 14 | from kivy.config import Config 15 | Config.read(os.path.join(os.path.dirname(os.path.abspath(__file__)), "GUI.ini")) 16 | from kivy.app import App 17 | from kivy.lang import Builder 18 | from kivy.uix.boxlayout import BoxLayout 19 | from kivy.uix.gridlayout import GridLayout 20 | from kivy.clock import Clock 21 | from kivy.uix.image import Image 22 | from kivy.uix.popup import Popup 23 | 24 | # %% library imports 25 | from library.kivy_utils import TTLabel, TTButton 26 | 27 | """ ################################################################################################################### 28 | ################################################# Configuration ####################################################### 29 | ################################################################################################################### """ 30 | 31 | # read kivy files 32 | for kv in ["root.kv", "style.kv"]: 33 | Builder.load_file("layouts" + os.sep + kv) 34 | 35 | 36 | """ ################################################################################################################### 37 | ################################################### Main Class ######################################################## 38 | ################################################################################################################### """ 39 | 40 | 41 | class Root(BoxLayout): 42 | """ Main Root class for callbacks, UI building etc.""" 43 | last_screen = None 44 | 45 | def __init__(self): 46 | super().__init__() 47 | 48 | def test_function(self): 49 | print("K TEST") 50 | 51 | def update_status(self, text="", warning=False, critical=False): 52 | markup = "" 53 | if warning: 54 | markup = "[color=d87600]" # orange 55 | if critical: 56 | markup = "[color=ff2600][b]" # red 57 | self.ids.status.text = f"{markup}{text}" # label for status text inside bottom menu 58 | Clock.schedule_once(self.ids.status.on_window_resize) # refresh size of status label 59 | 60 | # TODO: write status to log 61 | # code here 62 | 63 | def sm_switcher(self, go_to_screen): 64 | """Switch Screen depending on their order to left/right accordingly. 65 | 66 | Parameters 67 | ---------- 68 | go_to_screen : string 69 | Screen ID defined in kivy file 70 | """ 71 | for idx, scr in enumerate(self.ids.sm.screen_names): 72 | if go_to_screen == scr: 73 | goto_index_ = idx 74 | if self.ids.sm.current == scr: 75 | current_index_ = idx 76 | 77 | if current_index_ > goto_index_: 78 | self.ids.sm.transition.direction = 'right' 79 | if current_index_ < goto_index_: 80 | self.ids.sm.transition.direction = 'left' 81 | 82 | self.last_screen = go_to_screen 83 | self.ids.sm.current = go_to_screen 84 | Clock.schedule_once(self.sm_refresh_widgets) 85 | # self.ids.sm.canvas.ask_update() # if screenmanager has canvas which changes from screen to screen 86 | 87 | def sm_refresh_widgets(self, *args): 88 | """Refresh widget size after switching screens. Checks for three levels of nested layouts.""" 89 | # Accesses first layout in Screen (usually BoxLayout, no typecheck) 90 | root = self.ids[f"'{self.ids.sm.current}'"].children[0] 91 | # iterate over all children in first Layout in Screen 92 | for child in root.children: 93 | # if child is BoxLayout or GridLayout go deeper one level .. 94 | if isinstance(child, (BoxLayout, GridLayout)): 95 | for sub_child in child.children: 96 | # if sub_child is BoxLayout or GridLayout go deeper yet another level .. 97 | if isinstance(sub_child, (BoxLayout, GridLayout)): 98 | for sub_sub_child in sub_child.children: 99 | # if third-level child is TTButton or TTLabel, trigger resize; no 4th level 100 | if isinstance(sub_sub_child, (TTButton, TTLabel)): 101 | sub_sub_child.on_window_resize() 102 | # if second-level child is TTButton or TTLabel, trigger resize 103 | elif isinstance(sub_child, (TTButton, TTLabel)): 104 | sub_child.on_window_resize() 105 | # if top-level child is TTButton or TTLabel, trigger resize 106 | elif isinstance(child, (TTButton, TTLabel)): 107 | child.on_window_resize() 108 | 109 | 110 | class LeysolutionsApp(App): 111 | """App class, access attributes from .kv files via app.attribute_name""" 112 | 113 | def __init__(self, **kwargs): 114 | super().__init__() 115 | self.splash_popup: Popup = None 116 | 117 | def build_config(self, config): 118 | """Builds default config if none exists (leysolutionsapp.ini). 119 | - Root config: Config.get() 120 | - LeysolutionsApp config: self.config['section']['key'] 121 | """ 122 | config.setdefaults("general", { 123 | "console_enabled": "0" 124 | }) 125 | config.setdefaults('layout', { 126 | 'font_size_button': '15', 127 | 'font_size_text': '15', 128 | 'font_size_h1': '30', 129 | 'font_size_h2': '25', 130 | 'font_family': 'Barlow', 131 | 'show_splash': '1', 132 | "dark_mode": "1", 133 | }) 134 | config.setdefaults("images", { 135 | "logo_bright": "static" + os.sep + "logo_bright.png", 136 | "logo_dark": "static" + os.sep + "logo_dark.png", 137 | "logo_splash": "static" + os.sep + "logo_splash.jpg", 138 | "bg_dark": "static" + os.sep + "bg_dark.jpg", 139 | "bg_bright": "static" + os.sep + "bg_bright.jpg", 140 | "horizontal_line": "static" + os.sep + "horizontal_line_blue.png", 141 | "bar_dark": "static" + os.sep + "bar_dark.png", 142 | "bar_bright": "static" + os.sep + "bar_bright.png", 143 | }) 144 | 145 | def build_settings(self, settings): 146 | """Builds settings menu accessible with F1""" 147 | settings.add_json_panel('LeysolutionsApp configuration panel', self.config, "static" + os.sep + "settings_menu.json") 148 | 149 | def on_config_change(self, config, section, key, value): 150 | """Callback if configuration was changed""" 151 | if config is self.config: 152 | if key == "font_family": 153 | if value == "Barlow": 154 | tmp = "['Barlow', 'static/Barlow-Medium.ttf', 'static/Barlow-MediumItalic.ttf', " \ 155 | "'static/Barlow-Bold.ttf', 'static/Barlow-BoldItalic.ttf']" 156 | if value == "Roboto": 157 | tmp = "['Roboto', 'data/fonts/Roboto-Regular.ttf', 'data/fonts/Roboto-Italic.ttf', " \ 158 | "'data/fonts/Roboto-Bold.ttf', 'data/fonts/Roboto-BoldItalic.ttf']" 159 | Config.set("kivy", "default_font", tmp) 160 | Config.write() # writes to GUI.ini 161 | 162 | if platform.system() == "Windows": 163 | if key == "console_enabled": 164 | if bool(int(value)): 165 | print("enabling console") 166 | win32gui.ShowWindow(win32console.GetConsoleWindow(), win32con.SW_SHOW) 167 | else: 168 | print("disabling console") 169 | win32gui.ShowWindow(win32console.GetConsoleWindow(), win32con.SW_HIDE) 170 | 171 | print(f"Config updated: {section} | {key} | {value}") 172 | self.root.update_status(text=f"Config updated: {section} | {key} | {value}") 173 | 174 | # Restart UI on certain keys 175 | if key.startswith(("font_", "dark_mode")): 176 | print("Restarting UI in 2 seconds ..") 177 | Clock.schedule_once(self.restart, 2) 178 | 179 | def build(self): 180 | config = self.config 181 | self.root = Root() 182 | # show/hide splashscreen 183 | if bool(int(config["layout"]["show_splash"])): 184 | Clock.schedule_once(self.splash_screen, .01) 185 | # show/hide console 186 | if platform.system() == "Windows": 187 | if bool(int(config["general"]["console_enabled"])) == False: 188 | win32gui.ShowWindow(win32console.GetConsoleWindow(), win32con.SW_HIDE) 189 | return self.root 190 | 191 | def on_pause(self): 192 | return True 193 | 194 | def splash_screen(self, *args): 195 | """Splash screen at beginning of launch""" 196 | self.splash_popup = Popup(title="Welcome to my demo app!", title_size=20, title_align="center", 197 | size_hint=(None, None), size=self.root.size, auto_dismiss=True) 198 | content = BoxLayout(orientation="vertical") 199 | image = Image(source=self.config["images"]["logo_splash"]) 200 | content.add_widget(image) 201 | 202 | self.splash_popup.content = content 203 | 204 | self.splash_popup.open() 205 | 206 | def kill(*args): 207 | self.splash_popup.dismiss() 208 | 209 | Clock.schedule_once(kill, 3) 210 | 211 | def restart(self, *args): 212 | """Restart GUI.""" 213 | print('Restarting GUI .....') 214 | try: 215 | p = psutil.Process(os.getpid()) 216 | for handler in p.get_open_files() + p.connections(): 217 | os.close(handler.fd) 218 | except Exception as e: 219 | print(e) 220 | # logging.error(e) 221 | 222 | python = sys.executable 223 | if platform.system() == "Windows": 224 | os.execl(python, python, "\"{}\"".format(sys.argv[0])) 225 | elif platform.system() == "Linux": 226 | os.execl(python, python, f"{sys.argv[0]}") 227 | 228 | 229 | if __name__ == "__main__": 230 | LeysolutionsApp().run() 231 | -------------------------------------------------------------------------------- /Kivy/Template/docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/doctrees/environment.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mnikley/Python-UI-Collection/088b12effa0d50c84813375170bbc644989f788d/Kivy/Template/docs/_build/doctrees/environment.pickle -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/doctrees/index.doctree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mnikley/Python-UI-Collection/088b12effa0d50c84813375170bbc644989f788d/Kivy/Template/docs/_build/doctrees/index.doctree -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/.buildinfo: -------------------------------------------------------------------------------- 1 | # Sphinx build info version 1 2 | # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. 3 | config: 638ca14e61dc7200ce1e798e693f4518 4 | tags: 645f666f9bcd5a90fca523b33c5a78b7 5 | -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_sources/index.rst.txt: -------------------------------------------------------------------------------- 1 | .. TKinter Template GUI documentation master file, created by 2 | sphinx-quickstart on Mon Sep 20 12:26:54 2021. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to TKinter Template GUI's documentation! 7 | ================================================ 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | :caption: Contents: 12 | 13 | 14 | 15 | Indices and tables 16 | ================== 17 | 18 | * :ref:`genindex` 19 | * :ref:`modindex` 20 | * :ref:`search` 21 | -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/alabaster.css: -------------------------------------------------------------------------------- 1 | @import url("basic.css"); 2 | 3 | /* -- page layout ----------------------------------------------------------- */ 4 | 5 | body { 6 | font-family: Georgia, serif; 7 | font-size: 17px; 8 | background-color: #fff; 9 | color: #000; 10 | margin: 0; 11 | padding: 0; 12 | } 13 | 14 | 15 | div.document { 16 | width: 940px; 17 | margin: 30px auto 0 auto; 18 | } 19 | 20 | div.documentwrapper { 21 | float: left; 22 | width: 100%; 23 | } 24 | 25 | div.bodywrapper { 26 | margin: 0 0 0 220px; 27 | } 28 | 29 | div.sphinxsidebar { 30 | width: 220px; 31 | font-size: 14px; 32 | line-height: 1.5; 33 | } 34 | 35 | hr { 36 | border: 1px solid #B1B4B6; 37 | } 38 | 39 | div.body { 40 | background-color: #fff; 41 | color: #3E4349; 42 | padding: 0 30px 0 30px; 43 | } 44 | 45 | div.body > .section { 46 | text-align: left; 47 | } 48 | 49 | div.footer { 50 | width: 940px; 51 | margin: 20px auto 30px auto; 52 | font-size: 14px; 53 | color: #888; 54 | text-align: right; 55 | } 56 | 57 | div.footer a { 58 | color: #888; 59 | } 60 | 61 | p.caption { 62 | font-family: inherit; 63 | font-size: inherit; 64 | } 65 | 66 | 67 | div.relations { 68 | display: none; 69 | } 70 | 71 | 72 | div.sphinxsidebar a { 73 | color: #444; 74 | text-decoration: none; 75 | border-bottom: 1px dotted #999; 76 | } 77 | 78 | div.sphinxsidebar a:hover { 79 | border-bottom: 1px solid #999; 80 | } 81 | 82 | div.sphinxsidebarwrapper { 83 | padding: 18px 10px; 84 | } 85 | 86 | div.sphinxsidebarwrapper p.logo { 87 | padding: 0; 88 | margin: -10px 0 0 0px; 89 | text-align: center; 90 | } 91 | 92 | div.sphinxsidebarwrapper h1.logo { 93 | margin-top: -10px; 94 | text-align: center; 95 | margin-bottom: 5px; 96 | text-align: left; 97 | } 98 | 99 | div.sphinxsidebarwrapper h1.logo-name { 100 | margin-top: 0px; 101 | } 102 | 103 | div.sphinxsidebarwrapper p.blurb { 104 | margin-top: 0; 105 | font-style: normal; 106 | } 107 | 108 | div.sphinxsidebar h3, 109 | div.sphinxsidebar h4 { 110 | font-family: Georgia, serif; 111 | color: #444; 112 | font-size: 24px; 113 | font-weight: normal; 114 | margin: 0 0 5px 0; 115 | padding: 0; 116 | } 117 | 118 | div.sphinxsidebar h4 { 119 | font-size: 20px; 120 | } 121 | 122 | div.sphinxsidebar h3 a { 123 | color: #444; 124 | } 125 | 126 | div.sphinxsidebar p.logo a, 127 | div.sphinxsidebar h3 a, 128 | div.sphinxsidebar p.logo a:hover, 129 | div.sphinxsidebar h3 a:hover { 130 | border: none; 131 | } 132 | 133 | div.sphinxsidebar p { 134 | color: #555; 135 | margin: 10px 0; 136 | } 137 | 138 | div.sphinxsidebar ul { 139 | margin: 10px 0; 140 | padding: 0; 141 | color: #000; 142 | } 143 | 144 | div.sphinxsidebar ul li.toctree-l1 > a { 145 | font-size: 120%; 146 | } 147 | 148 | div.sphinxsidebar ul li.toctree-l2 > a { 149 | font-size: 110%; 150 | } 151 | 152 | div.sphinxsidebar input { 153 | border: 1px solid #CCC; 154 | font-family: Georgia, serif; 155 | font-size: 1em; 156 | } 157 | 158 | div.sphinxsidebar hr { 159 | border: none; 160 | height: 1px; 161 | color: #AAA; 162 | background: #AAA; 163 | 164 | text-align: left; 165 | margin-left: 0; 166 | width: 50%; 167 | } 168 | 169 | div.sphinxsidebar .badge { 170 | border-bottom: none; 171 | } 172 | 173 | div.sphinxsidebar .badge:hover { 174 | border-bottom: none; 175 | } 176 | 177 | /* To address an issue with donation coming after search */ 178 | div.sphinxsidebar h3.donation { 179 | margin-top: 10px; 180 | } 181 | 182 | /* -- body styles ----------------------------------------------------------- */ 183 | 184 | a { 185 | color: #004B6B; 186 | text-decoration: underline; 187 | } 188 | 189 | a:hover { 190 | color: #6D4100; 191 | text-decoration: underline; 192 | } 193 | 194 | div.body h1, 195 | div.body h2, 196 | div.body h3, 197 | div.body h4, 198 | div.body h5, 199 | div.body h6 { 200 | font-family: Georgia, serif; 201 | font-weight: normal; 202 | margin: 30px 0px 10px 0px; 203 | padding: 0; 204 | } 205 | 206 | div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; } 207 | div.body h2 { font-size: 180%; } 208 | div.body h3 { font-size: 150%; } 209 | div.body h4 { font-size: 130%; } 210 | div.body h5 { font-size: 100%; } 211 | div.body h6 { font-size: 100%; } 212 | 213 | a.headerlink { 214 | color: #DDD; 215 | padding: 0 4px; 216 | text-decoration: none; 217 | } 218 | 219 | a.headerlink:hover { 220 | color: #444; 221 | background: #EAEAEA; 222 | } 223 | 224 | div.body p, div.body dd, div.body li { 225 | line-height: 1.4em; 226 | } 227 | 228 | div.admonition { 229 | margin: 20px 0px; 230 | padding: 10px 30px; 231 | background-color: #EEE; 232 | border: 1px solid #CCC; 233 | } 234 | 235 | div.admonition tt.xref, div.admonition code.xref, div.admonition a tt { 236 | background-color: #FBFBFB; 237 | border-bottom: 1px solid #fafafa; 238 | } 239 | 240 | div.admonition p.admonition-title { 241 | font-family: Georgia, serif; 242 | font-weight: normal; 243 | font-size: 24px; 244 | margin: 0 0 10px 0; 245 | padding: 0; 246 | line-height: 1; 247 | } 248 | 249 | div.admonition p.last { 250 | margin-bottom: 0; 251 | } 252 | 253 | div.highlight { 254 | background-color: #fff; 255 | } 256 | 257 | dt:target, .highlight { 258 | background: #FAF3E8; 259 | } 260 | 261 | div.warning { 262 | background-color: #FCC; 263 | border: 1px solid #FAA; 264 | } 265 | 266 | div.danger { 267 | background-color: #FCC; 268 | border: 1px solid #FAA; 269 | -moz-box-shadow: 2px 2px 4px #D52C2C; 270 | -webkit-box-shadow: 2px 2px 4px #D52C2C; 271 | box-shadow: 2px 2px 4px #D52C2C; 272 | } 273 | 274 | div.error { 275 | background-color: #FCC; 276 | border: 1px solid #FAA; 277 | -moz-box-shadow: 2px 2px 4px #D52C2C; 278 | -webkit-box-shadow: 2px 2px 4px #D52C2C; 279 | box-shadow: 2px 2px 4px #D52C2C; 280 | } 281 | 282 | div.caution { 283 | background-color: #FCC; 284 | border: 1px solid #FAA; 285 | } 286 | 287 | div.attention { 288 | background-color: #FCC; 289 | border: 1px solid #FAA; 290 | } 291 | 292 | div.important { 293 | background-color: #EEE; 294 | border: 1px solid #CCC; 295 | } 296 | 297 | div.note { 298 | background-color: #EEE; 299 | border: 1px solid #CCC; 300 | } 301 | 302 | div.tip { 303 | background-color: #EEE; 304 | border: 1px solid #CCC; 305 | } 306 | 307 | div.hint { 308 | background-color: #EEE; 309 | border: 1px solid #CCC; 310 | } 311 | 312 | div.seealso { 313 | background-color: #EEE; 314 | border: 1px solid #CCC; 315 | } 316 | 317 | div.topic { 318 | background-color: #EEE; 319 | } 320 | 321 | p.admonition-title { 322 | display: inline; 323 | } 324 | 325 | p.admonition-title:after { 326 | content: ":"; 327 | } 328 | 329 | pre, tt, code { 330 | font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; 331 | font-size: 0.9em; 332 | } 333 | 334 | .hll { 335 | background-color: #FFC; 336 | margin: 0 -12px; 337 | padding: 0 12px; 338 | display: block; 339 | } 340 | 341 | img.screenshot { 342 | } 343 | 344 | tt.descname, tt.descclassname, code.descname, code.descclassname { 345 | font-size: 0.95em; 346 | } 347 | 348 | tt.descname, code.descname { 349 | padding-right: 0.08em; 350 | } 351 | 352 | img.screenshot { 353 | -moz-box-shadow: 2px 2px 4px #EEE; 354 | -webkit-box-shadow: 2px 2px 4px #EEE; 355 | box-shadow: 2px 2px 4px #EEE; 356 | } 357 | 358 | table.docutils { 359 | border: 1px solid #888; 360 | -moz-box-shadow: 2px 2px 4px #EEE; 361 | -webkit-box-shadow: 2px 2px 4px #EEE; 362 | box-shadow: 2px 2px 4px #EEE; 363 | } 364 | 365 | table.docutils td, table.docutils th { 366 | border: 1px solid #888; 367 | padding: 0.25em 0.7em; 368 | } 369 | 370 | table.field-list, table.footnote { 371 | border: none; 372 | -moz-box-shadow: none; 373 | -webkit-box-shadow: none; 374 | box-shadow: none; 375 | } 376 | 377 | table.footnote { 378 | margin: 15px 0; 379 | width: 100%; 380 | border: 1px solid #EEE; 381 | background: #FDFDFD; 382 | font-size: 0.9em; 383 | } 384 | 385 | table.footnote + table.footnote { 386 | margin-top: -15px; 387 | border-top: none; 388 | } 389 | 390 | table.field-list th { 391 | padding: 0 0.8em 0 0; 392 | } 393 | 394 | table.field-list td { 395 | padding: 0; 396 | } 397 | 398 | table.field-list p { 399 | margin-bottom: 0.8em; 400 | } 401 | 402 | /* Cloned from 403 | * https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68 404 | */ 405 | .field-name { 406 | -moz-hyphens: manual; 407 | -ms-hyphens: manual; 408 | -webkit-hyphens: manual; 409 | hyphens: manual; 410 | } 411 | 412 | table.footnote td.label { 413 | width: .1px; 414 | padding: 0.3em 0 0.3em 0.5em; 415 | } 416 | 417 | table.footnote td { 418 | padding: 0.3em 0.5em; 419 | } 420 | 421 | dl { 422 | margin: 0; 423 | padding: 0; 424 | } 425 | 426 | dl dd { 427 | margin-left: 30px; 428 | } 429 | 430 | blockquote { 431 | margin: 0 0 0 30px; 432 | padding: 0; 433 | } 434 | 435 | ul, ol { 436 | /* Matches the 30px from the narrow-screen "li > ul" selector below */ 437 | margin: 10px 0 10px 30px; 438 | padding: 0; 439 | } 440 | 441 | pre { 442 | background: #EEE; 443 | padding: 7px 30px; 444 | margin: 15px 0px; 445 | line-height: 1.3em; 446 | } 447 | 448 | div.viewcode-block:target { 449 | background: #ffd; 450 | } 451 | 452 | dl pre, blockquote pre, li pre { 453 | margin-left: 0; 454 | padding-left: 30px; 455 | } 456 | 457 | tt, code { 458 | background-color: #ecf0f3; 459 | color: #222; 460 | /* padding: 1px 2px; */ 461 | } 462 | 463 | tt.xref, code.xref, a tt { 464 | background-color: #FBFBFB; 465 | border-bottom: 1px solid #fff; 466 | } 467 | 468 | a.reference { 469 | text-decoration: none; 470 | border-bottom: 1px dotted #004B6B; 471 | } 472 | 473 | /* Don't put an underline on images */ 474 | a.image-reference, a.image-reference:hover { 475 | border-bottom: none; 476 | } 477 | 478 | a.reference:hover { 479 | border-bottom: 1px solid #6D4100; 480 | } 481 | 482 | a.footnote-reference { 483 | text-decoration: none; 484 | font-size: 0.7em; 485 | vertical-align: top; 486 | border-bottom: 1px dotted #004B6B; 487 | } 488 | 489 | a.footnote-reference:hover { 490 | border-bottom: 1px solid #6D4100; 491 | } 492 | 493 | a:hover tt, a:hover code { 494 | background: #EEE; 495 | } 496 | 497 | 498 | @media screen and (max-width: 870px) { 499 | 500 | div.sphinxsidebar { 501 | display: none; 502 | } 503 | 504 | div.document { 505 | width: 100%; 506 | 507 | } 508 | 509 | div.documentwrapper { 510 | margin-left: 0; 511 | margin-top: 0; 512 | margin-right: 0; 513 | margin-bottom: 0; 514 | } 515 | 516 | div.bodywrapper { 517 | margin-top: 0; 518 | margin-right: 0; 519 | margin-bottom: 0; 520 | margin-left: 0; 521 | } 522 | 523 | ul { 524 | margin-left: 0; 525 | } 526 | 527 | li > ul { 528 | /* Matches the 30px from the "ul, ol" selector above */ 529 | margin-left: 30px; 530 | } 531 | 532 | .document { 533 | width: auto; 534 | } 535 | 536 | .footer { 537 | width: auto; 538 | } 539 | 540 | .bodywrapper { 541 | margin: 0; 542 | } 543 | 544 | .footer { 545 | width: auto; 546 | } 547 | 548 | .github { 549 | display: none; 550 | } 551 | 552 | 553 | 554 | } 555 | 556 | 557 | 558 | @media screen and (max-width: 875px) { 559 | 560 | body { 561 | margin: 0; 562 | padding: 20px 30px; 563 | } 564 | 565 | div.documentwrapper { 566 | float: none; 567 | background: #fff; 568 | } 569 | 570 | div.sphinxsidebar { 571 | display: block; 572 | float: none; 573 | width: 102.5%; 574 | margin: 50px -30px -20px -30px; 575 | padding: 10px 20px; 576 | background: #333; 577 | color: #FFF; 578 | } 579 | 580 | div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, 581 | div.sphinxsidebar h3 a { 582 | color: #fff; 583 | } 584 | 585 | div.sphinxsidebar a { 586 | color: #AAA; 587 | } 588 | 589 | div.sphinxsidebar p.logo { 590 | display: none; 591 | } 592 | 593 | div.document { 594 | width: 100%; 595 | margin: 0; 596 | } 597 | 598 | div.footer { 599 | display: none; 600 | } 601 | 602 | div.bodywrapper { 603 | margin: 0; 604 | } 605 | 606 | div.body { 607 | min-height: 0; 608 | padding: 0; 609 | } 610 | 611 | .rtd_doc_footer { 612 | display: none; 613 | } 614 | 615 | .document { 616 | width: auto; 617 | } 618 | 619 | .footer { 620 | width: auto; 621 | } 622 | 623 | .footer { 624 | width: auto; 625 | } 626 | 627 | .github { 628 | display: none; 629 | } 630 | } 631 | 632 | 633 | /* misc. */ 634 | 635 | .revsys-inline { 636 | display: none!important; 637 | } 638 | 639 | /* Make nested-list/multi-paragraph items look better in Releases changelog 640 | * pages. Without this, docutils' magical list fuckery causes inconsistent 641 | * formatting between different release sub-lists. 642 | */ 643 | div#changelog > div.section > ul > li > p:only-child { 644 | margin-bottom: 0; 645 | } 646 | 647 | /* Hide fugly table cell borders in ..bibliography:: directive output */ 648 | table.docutils.citation, table.docutils.citation td, table.docutils.citation th { 649 | border: none; 650 | /* Below needed in some edge cases; if not applied, bottom shadows appear */ 651 | -moz-box-shadow: none; 652 | -webkit-box-shadow: none; 653 | box-shadow: none; 654 | } 655 | 656 | 657 | /* relbar */ 658 | 659 | .related { 660 | line-height: 30px; 661 | width: 100%; 662 | font-size: 0.9rem; 663 | } 664 | 665 | .related.top { 666 | border-bottom: 1px solid #EEE; 667 | margin-bottom: 20px; 668 | } 669 | 670 | .related.bottom { 671 | border-top: 1px solid #EEE; 672 | } 673 | 674 | .related ul { 675 | padding: 0; 676 | margin: 0; 677 | list-style: none; 678 | } 679 | 680 | .related li { 681 | display: inline; 682 | } 683 | 684 | nav#rellinks { 685 | float: right; 686 | } 687 | 688 | nav#rellinks li+li:before { 689 | content: "|"; 690 | } 691 | 692 | nav#breadcrumbs li+li:before { 693 | content: "\00BB"; 694 | } 695 | 696 | /* Hide certain items when printing */ 697 | @media print { 698 | div.related { 699 | display: none; 700 | } 701 | } -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/custom.css: -------------------------------------------------------------------------------- 1 | /* This file intentionally left blank. */ 2 | -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/doctools.js: -------------------------------------------------------------------------------- 1 | /* 2 | * doctools.js 3 | * ~~~~~~~~~~~ 4 | * 5 | * Sphinx JavaScript utilities for all documentation. 6 | * 7 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 8 | * :license: BSD, see LICENSE for details. 9 | * 10 | */ 11 | 12 | /** 13 | * select a different prefix for underscore 14 | */ 15 | $u = _.noConflict(); 16 | 17 | /** 18 | * make the code below compatible with browsers without 19 | * an installed firebug like debugger 20 | if (!window.console || !console.firebug) { 21 | var names = ["log", "debug", "info", "warn", "error", "assert", "dir", 22 | "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", 23 | "profile", "profileEnd"]; 24 | window.console = {}; 25 | for (var i = 0; i < names.length; ++i) 26 | window.console[names[i]] = function() {}; 27 | } 28 | */ 29 | 30 | /** 31 | * small helper function to urldecode strings 32 | * 33 | * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL 34 | */ 35 | jQuery.urldecode = function(x) { 36 | if (!x) { 37 | return x 38 | } 39 | return decodeURIComponent(x.replace(/\+/g, ' ')); 40 | }; 41 | 42 | /** 43 | * small helper function to urlencode strings 44 | */ 45 | jQuery.urlencode = encodeURIComponent; 46 | 47 | /** 48 | * This function returns the parsed url parameters of the 49 | * current request. Multiple values per key are supported, 50 | * it will always return arrays of strings for the value parts. 51 | */ 52 | jQuery.getQueryParameters = function(s) { 53 | if (typeof s === 'undefined') 54 | s = document.location.search; 55 | var parts = s.substr(s.indexOf('?') + 1).split('&'); 56 | var result = {}; 57 | for (var i = 0; i < parts.length; i++) { 58 | var tmp = parts[i].split('=', 2); 59 | var key = jQuery.urldecode(tmp[0]); 60 | var value = jQuery.urldecode(tmp[1]); 61 | if (key in result) 62 | result[key].push(value); 63 | else 64 | result[key] = [value]; 65 | } 66 | return result; 67 | }; 68 | 69 | /** 70 | * highlight a given string on a jquery object by wrapping it in 71 | * span elements with the given class name. 72 | */ 73 | jQuery.fn.highlightText = function(text, className) { 74 | function highlight(node, addItems) { 75 | if (node.nodeType === 3) { 76 | var val = node.nodeValue; 77 | var pos = val.toLowerCase().indexOf(text); 78 | if (pos >= 0 && 79 | !jQuery(node.parentNode).hasClass(className) && 80 | !jQuery(node.parentNode).hasClass("nohighlight")) { 81 | var span; 82 | var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg"); 83 | if (isInSVG) { 84 | span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); 85 | } else { 86 | span = document.createElement("span"); 87 | span.className = className; 88 | } 89 | span.appendChild(document.createTextNode(val.substr(pos, text.length))); 90 | node.parentNode.insertBefore(span, node.parentNode.insertBefore( 91 | document.createTextNode(val.substr(pos + text.length)), 92 | node.nextSibling)); 93 | node.nodeValue = val.substr(0, pos); 94 | if (isInSVG) { 95 | var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect"); 96 | var bbox = node.parentElement.getBBox(); 97 | rect.x.baseVal.value = bbox.x; 98 | rect.y.baseVal.value = bbox.y; 99 | rect.width.baseVal.value = bbox.width; 100 | rect.height.baseVal.value = bbox.height; 101 | rect.setAttribute('class', className); 102 | addItems.push({ 103 | "parent": node.parentNode, 104 | "target": rect}); 105 | } 106 | } 107 | } 108 | else if (!jQuery(node).is("button, select, textarea")) { 109 | jQuery.each(node.childNodes, function() { 110 | highlight(this, addItems); 111 | }); 112 | } 113 | } 114 | var addItems = []; 115 | var result = this.each(function() { 116 | highlight(this, addItems); 117 | }); 118 | for (var i = 0; i < addItems.length; ++i) { 119 | jQuery(addItems[i].parent).before(addItems[i].target); 120 | } 121 | return result; 122 | }; 123 | 124 | /* 125 | * backward compatibility for jQuery.browser 126 | * This will be supported until firefox bug is fixed. 127 | */ 128 | if (!jQuery.browser) { 129 | jQuery.uaMatch = function(ua) { 130 | ua = ua.toLowerCase(); 131 | 132 | var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || 133 | /(webkit)[ \/]([\w.]+)/.exec(ua) || 134 | /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || 135 | /(msie) ([\w.]+)/.exec(ua) || 136 | ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || 137 | []; 138 | 139 | return { 140 | browser: match[ 1 ] || "", 141 | version: match[ 2 ] || "0" 142 | }; 143 | }; 144 | jQuery.browser = {}; 145 | jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true; 146 | } 147 | 148 | /** 149 | * Small JavaScript module for the documentation. 150 | */ 151 | var Documentation = { 152 | 153 | init : function() { 154 | this.fixFirefoxAnchorBug(); 155 | this.highlightSearchWords(); 156 | this.initIndexTable(); 157 | if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) { 158 | this.initOnKeyListeners(); 159 | } 160 | }, 161 | 162 | /** 163 | * i18n support 164 | */ 165 | TRANSLATIONS : {}, 166 | PLURAL_EXPR : function(n) { return n === 1 ? 0 : 1; }, 167 | LOCALE : 'unknown', 168 | 169 | // gettext and ngettext don't access this so that the functions 170 | // can safely bound to a different name (_ = Documentation.gettext) 171 | gettext : function(string) { 172 | var translated = Documentation.TRANSLATIONS[string]; 173 | if (typeof translated === 'undefined') 174 | return string; 175 | return (typeof translated === 'string') ? translated : translated[0]; 176 | }, 177 | 178 | ngettext : function(singular, plural, n) { 179 | var translated = Documentation.TRANSLATIONS[singular]; 180 | if (typeof translated === 'undefined') 181 | return (n == 1) ? singular : plural; 182 | return translated[Documentation.PLURALEXPR(n)]; 183 | }, 184 | 185 | addTranslations : function(catalog) { 186 | for (var key in catalog.messages) 187 | this.TRANSLATIONS[key] = catalog.messages[key]; 188 | this.PLURAL_EXPR = new Function('n', 'return +(' + catalog.plural_expr + ')'); 189 | this.LOCALE = catalog.locale; 190 | }, 191 | 192 | /** 193 | * add context elements like header anchor links 194 | */ 195 | addContextElements : function() { 196 | $('div[id] > :header:first').each(function() { 197 | $('\u00B6'). 198 | attr('href', '#' + this.id). 199 | attr('title', _('Permalink to this headline')). 200 | appendTo(this); 201 | }); 202 | $('dt[id]').each(function() { 203 | $('\u00B6'). 204 | attr('href', '#' + this.id). 205 | attr('title', _('Permalink to this definition')). 206 | appendTo(this); 207 | }); 208 | }, 209 | 210 | /** 211 | * workaround a firefox stupidity 212 | * see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075 213 | */ 214 | fixFirefoxAnchorBug : function() { 215 | if (document.location.hash && $.browser.mozilla) 216 | window.setTimeout(function() { 217 | document.location.href += ''; 218 | }, 10); 219 | }, 220 | 221 | /** 222 | * highlight the search words provided in the url in the text 223 | */ 224 | highlightSearchWords : function() { 225 | var params = $.getQueryParameters(); 226 | var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; 227 | if (terms.length) { 228 | var body = $('div.body'); 229 | if (!body.length) { 230 | body = $('body'); 231 | } 232 | window.setTimeout(function() { 233 | $.each(terms, function() { 234 | body.highlightText(this.toLowerCase(), 'highlighted'); 235 | }); 236 | }, 10); 237 | $('') 239 | .appendTo($('#searchbox')); 240 | } 241 | }, 242 | 243 | /** 244 | * init the domain index toggle buttons 245 | */ 246 | initIndexTable : function() { 247 | var togglers = $('img.toggler').click(function() { 248 | var src = $(this).attr('src'); 249 | var idnum = $(this).attr('id').substr(7); 250 | $('tr.cg-' + idnum).toggle(); 251 | if (src.substr(-9) === 'minus.png') 252 | $(this).attr('src', src.substr(0, src.length-9) + 'plus.png'); 253 | else 254 | $(this).attr('src', src.substr(0, src.length-8) + 'minus.png'); 255 | }).css('display', ''); 256 | if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) { 257 | togglers.click(); 258 | } 259 | }, 260 | 261 | /** 262 | * helper function to hide the search marks again 263 | */ 264 | hideSearchWords : function() { 265 | $('#searchbox .highlight-link').fadeOut(300); 266 | $('span.highlighted').removeClass('highlighted'); 267 | }, 268 | 269 | /** 270 | * make the url absolute 271 | */ 272 | makeURL : function(relativeURL) { 273 | return DOCUMENTATION_OPTIONS.URL_ROOT + '/' + relativeURL; 274 | }, 275 | 276 | /** 277 | * get the current relative url 278 | */ 279 | getCurrentURL : function() { 280 | var path = document.location.pathname; 281 | var parts = path.split(/\//); 282 | $.each(DOCUMENTATION_OPTIONS.URL_ROOT.split(/\//), function() { 283 | if (this === '..') 284 | parts.pop(); 285 | }); 286 | var url = parts.join('/'); 287 | return path.substring(url.lastIndexOf('/') + 1, path.length - 1); 288 | }, 289 | 290 | initOnKeyListeners: function() { 291 | $(document).keydown(function(event) { 292 | var activeElementType = document.activeElement.tagName; 293 | // don't navigate when in search box, textarea, dropdown or button 294 | if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT' 295 | && activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey 296 | && !event.shiftKey) { 297 | switch (event.keyCode) { 298 | case 37: // left 299 | var prevHref = $('link[rel="prev"]').prop('href'); 300 | if (prevHref) { 301 | window.location.href = prevHref; 302 | return false; 303 | } 304 | break; 305 | case 39: // right 306 | var nextHref = $('link[rel="next"]').prop('href'); 307 | if (nextHref) { 308 | window.location.href = nextHref; 309 | return false; 310 | } 311 | break; 312 | } 313 | } 314 | }); 315 | } 316 | }; 317 | 318 | // quick alias for translations 319 | _ = Documentation.gettext; 320 | 321 | $(document).ready(function() { 322 | Documentation.init(); 323 | }); 324 | -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/documentation_options.js: -------------------------------------------------------------------------------- 1 | var DOCUMENTATION_OPTIONS = { 2 | URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), 3 | VERSION: '1.0', 4 | LANGUAGE: 'None', 5 | COLLAPSE_INDEX: false, 6 | BUILDER: 'html', 7 | FILE_SUFFIX: '.html', 8 | LINK_SUFFIX: '.html', 9 | HAS_SOURCE: true, 10 | SOURCELINK_SUFFIX: '.txt', 11 | NAVIGATION_WITH_KEYS: false 12 | }; -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mnikley/Python-UI-Collection/088b12effa0d50c84813375170bbc644989f788d/Kivy/Template/docs/_build/html/_static/file.png -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/language_data.js: -------------------------------------------------------------------------------- 1 | /* 2 | * language_data.js 3 | * ~~~~~~~~~~~~~~~~ 4 | * 5 | * This script contains the language-specific data used by searchtools.js, 6 | * namely the list of stopwords, stemmer, scorer and splitter. 7 | * 8 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 9 | * :license: BSD, see LICENSE for details. 10 | * 11 | */ 12 | 13 | var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; 14 | 15 | 16 | /* Non-minified version is copied as a separate JS file, is available */ 17 | 18 | /** 19 | * Porter Stemmer 20 | */ 21 | var Stemmer = function() { 22 | 23 | var step2list = { 24 | ational: 'ate', 25 | tional: 'tion', 26 | enci: 'ence', 27 | anci: 'ance', 28 | izer: 'ize', 29 | bli: 'ble', 30 | alli: 'al', 31 | entli: 'ent', 32 | eli: 'e', 33 | ousli: 'ous', 34 | ization: 'ize', 35 | ation: 'ate', 36 | ator: 'ate', 37 | alism: 'al', 38 | iveness: 'ive', 39 | fulness: 'ful', 40 | ousness: 'ous', 41 | aliti: 'al', 42 | iviti: 'ive', 43 | biliti: 'ble', 44 | logi: 'log' 45 | }; 46 | 47 | var step3list = { 48 | icate: 'ic', 49 | ative: '', 50 | alize: 'al', 51 | iciti: 'ic', 52 | ical: 'ic', 53 | ful: '', 54 | ness: '' 55 | }; 56 | 57 | var c = "[^aeiou]"; // consonant 58 | var v = "[aeiouy]"; // vowel 59 | var C = c + "[^aeiouy]*"; // consonant sequence 60 | var V = v + "[aeiou]*"; // vowel sequence 61 | 62 | var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 63 | var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 64 | var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 65 | var s_v = "^(" + C + ")?" + v; // vowel in stem 66 | 67 | this.stemWord = function (w) { 68 | var stem; 69 | var suffix; 70 | var firstch; 71 | var origword = w; 72 | 73 | if (w.length < 3) 74 | return w; 75 | 76 | var re; 77 | var re2; 78 | var re3; 79 | var re4; 80 | 81 | firstch = w.substr(0,1); 82 | if (firstch == "y") 83 | w = firstch.toUpperCase() + w.substr(1); 84 | 85 | // Step 1a 86 | re = /^(.+?)(ss|i)es$/; 87 | re2 = /^(.+?)([^s])s$/; 88 | 89 | if (re.test(w)) 90 | w = w.replace(re,"$1$2"); 91 | else if (re2.test(w)) 92 | w = w.replace(re2,"$1$2"); 93 | 94 | // Step 1b 95 | re = /^(.+?)eed$/; 96 | re2 = /^(.+?)(ed|ing)$/; 97 | if (re.test(w)) { 98 | var fp = re.exec(w); 99 | re = new RegExp(mgr0); 100 | if (re.test(fp[1])) { 101 | re = /.$/; 102 | w = w.replace(re,""); 103 | } 104 | } 105 | else if (re2.test(w)) { 106 | var fp = re2.exec(w); 107 | stem = fp[1]; 108 | re2 = new RegExp(s_v); 109 | if (re2.test(stem)) { 110 | w = stem; 111 | re2 = /(at|bl|iz)$/; 112 | re3 = new RegExp("([^aeiouylsz])\\1$"); 113 | re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); 114 | if (re2.test(w)) 115 | w = w + "e"; 116 | else if (re3.test(w)) { 117 | re = /.$/; 118 | w = w.replace(re,""); 119 | } 120 | else if (re4.test(w)) 121 | w = w + "e"; 122 | } 123 | } 124 | 125 | // Step 1c 126 | re = /^(.+?)y$/; 127 | if (re.test(w)) { 128 | var fp = re.exec(w); 129 | stem = fp[1]; 130 | re = new RegExp(s_v); 131 | if (re.test(stem)) 132 | w = stem + "i"; 133 | } 134 | 135 | // Step 2 136 | re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; 137 | if (re.test(w)) { 138 | var fp = re.exec(w); 139 | stem = fp[1]; 140 | suffix = fp[2]; 141 | re = new RegExp(mgr0); 142 | if (re.test(stem)) 143 | w = stem + step2list[suffix]; 144 | } 145 | 146 | // Step 3 147 | re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; 148 | if (re.test(w)) { 149 | var fp = re.exec(w); 150 | stem = fp[1]; 151 | suffix = fp[2]; 152 | re = new RegExp(mgr0); 153 | if (re.test(stem)) 154 | w = stem + step3list[suffix]; 155 | } 156 | 157 | // Step 4 158 | re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; 159 | re2 = /^(.+?)(s|t)(ion)$/; 160 | if (re.test(w)) { 161 | var fp = re.exec(w); 162 | stem = fp[1]; 163 | re = new RegExp(mgr1); 164 | if (re.test(stem)) 165 | w = stem; 166 | } 167 | else if (re2.test(w)) { 168 | var fp = re2.exec(w); 169 | stem = fp[1] + fp[2]; 170 | re2 = new RegExp(mgr1); 171 | if (re2.test(stem)) 172 | w = stem; 173 | } 174 | 175 | // Step 5 176 | re = /^(.+?)e$/; 177 | if (re.test(w)) { 178 | var fp = re.exec(w); 179 | stem = fp[1]; 180 | re = new RegExp(mgr1); 181 | re2 = new RegExp(meq1); 182 | re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); 183 | if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) 184 | w = stem; 185 | } 186 | re = /ll$/; 187 | re2 = new RegExp(mgr1); 188 | if (re.test(w) && re2.test(w)) { 189 | re = /.$/; 190 | w = w.replace(re,""); 191 | } 192 | 193 | // and turn initial Y back to y 194 | if (firstch == "y") 195 | w = firstch.toLowerCase() + w.substr(1); 196 | return w; 197 | } 198 | } 199 | 200 | 201 | 202 | 203 | var splitChars = (function() { 204 | var result = {}; 205 | var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, 206 | 1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702, 207 | 2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971, 208 | 2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345, 209 | 3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761, 210 | 3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823, 211 | 4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125, 212 | 8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695, 213 | 11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587, 214 | 43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141]; 215 | var i, j, start, end; 216 | for (i = 0; i < singles.length; i++) { 217 | result[singles[i]] = true; 218 | } 219 | var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709], 220 | [722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161], 221 | [1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568], 222 | [1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807], 223 | [1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047], 224 | [2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383], 225 | [2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450], 226 | [2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547], 227 | [2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673], 228 | [2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820], 229 | [2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946], 230 | [2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023], 231 | [3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173], 232 | [3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332], 233 | [3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481], 234 | [3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718], 235 | [3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791], 236 | [3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095], 237 | [4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205], 238 | [4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687], 239 | [4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968], 240 | [4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869], 241 | [5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102], 242 | [6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271], 243 | [6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592], 244 | [6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822], 245 | [6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167], 246 | [7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959], 247 | [7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143], 248 | [8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318], 249 | [8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483], 250 | [8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101], 251 | [10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567], 252 | [11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292], 253 | [12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444], 254 | [12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783], 255 | [12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311], 256 | [19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511], 257 | [42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774], 258 | [42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071], 259 | [43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263], 260 | [43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519], 261 | [43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647], 262 | [43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967], 263 | [44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295], 264 | [57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274], 265 | [64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007], 266 | [65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381], 267 | [65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]]; 268 | for (i = 0; i < ranges.length; i++) { 269 | start = ranges[i][0]; 270 | end = ranges[i][1]; 271 | for (j = start; j <= end; j++) { 272 | result[j] = true; 273 | } 274 | } 275 | return result; 276 | })(); 277 | 278 | function splitQuery(query) { 279 | var result = []; 280 | var start = -1; 281 | for (var i = 0; i < query.length; i++) { 282 | if (splitChars[query.charCodeAt(i)]) { 283 | if (start !== -1) { 284 | result.push(query.slice(start, i)); 285 | start = -1; 286 | } 287 | } else if (start === -1) { 288 | start = i; 289 | } 290 | } 291 | if (start !== -1) { 292 | result.push(query.slice(start)); 293 | } 294 | return result; 295 | } 296 | 297 | 298 | -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mnikley/Python-UI-Collection/088b12effa0d50c84813375170bbc644989f788d/Kivy/Template/docs/_build/html/_static/minus.png -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mnikley/Python-UI-Collection/088b12effa0d50c84813375170bbc644989f788d/Kivy/Template/docs/_build/html/_static/plus.png -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/pygments.css: -------------------------------------------------------------------------------- 1 | pre { line-height: 125%; } 2 | td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } 3 | span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } 4 | td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } 5 | span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } 6 | .highlight .hll { background-color: #ffffcc } 7 | .highlight { background: #f8f8f8; } 8 | .highlight .c { color: #8f5902; font-style: italic } /* Comment */ 9 | .highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */ 10 | .highlight .g { color: #000000 } /* Generic */ 11 | .highlight .k { color: #004461; font-weight: bold } /* Keyword */ 12 | .highlight .l { color: #000000 } /* Literal */ 13 | .highlight .n { color: #000000 } /* Name */ 14 | .highlight .o { color: #582800 } /* Operator */ 15 | .highlight .x { color: #000000 } /* Other */ 16 | .highlight .p { color: #000000; font-weight: bold } /* Punctuation */ 17 | .highlight .ch { color: #8f5902; font-style: italic } /* Comment.Hashbang */ 18 | .highlight .cm { color: #8f5902; font-style: italic } /* Comment.Multiline */ 19 | .highlight .cp { color: #8f5902 } /* Comment.Preproc */ 20 | .highlight .cpf { color: #8f5902; font-style: italic } /* Comment.PreprocFile */ 21 | .highlight .c1 { color: #8f5902; font-style: italic } /* Comment.Single */ 22 | .highlight .cs { color: #8f5902; font-style: italic } /* Comment.Special */ 23 | .highlight .gd { color: #a40000 } /* Generic.Deleted */ 24 | .highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */ 25 | .highlight .gr { color: #ef2929 } /* Generic.Error */ 26 | .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ 27 | .highlight .gi { color: #00A000 } /* Generic.Inserted */ 28 | .highlight .go { color: #888888 } /* Generic.Output */ 29 | .highlight .gp { color: #745334 } /* Generic.Prompt */ 30 | .highlight .gs { color: #000000; font-weight: bold } /* Generic.Strong */ 31 | .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ 32 | .highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */ 33 | .highlight .kc { color: #004461; font-weight: bold } /* Keyword.Constant */ 34 | .highlight .kd { color: #004461; font-weight: bold } /* Keyword.Declaration */ 35 | .highlight .kn { color: #004461; font-weight: bold } /* Keyword.Namespace */ 36 | .highlight .kp { color: #004461; font-weight: bold } /* Keyword.Pseudo */ 37 | .highlight .kr { color: #004461; font-weight: bold } /* Keyword.Reserved */ 38 | .highlight .kt { color: #004461; font-weight: bold } /* Keyword.Type */ 39 | .highlight .ld { color: #000000 } /* Literal.Date */ 40 | .highlight .m { color: #990000 } /* Literal.Number */ 41 | .highlight .s { color: #4e9a06 } /* Literal.String */ 42 | .highlight .na { color: #c4a000 } /* Name.Attribute */ 43 | .highlight .nb { color: #004461 } /* Name.Builtin */ 44 | .highlight .nc { color: #000000 } /* Name.Class */ 45 | .highlight .no { color: #000000 } /* Name.Constant */ 46 | .highlight .nd { color: #888888 } /* Name.Decorator */ 47 | .highlight .ni { color: #ce5c00 } /* Name.Entity */ 48 | .highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */ 49 | .highlight .nf { color: #000000 } /* Name.Function */ 50 | .highlight .nl { color: #f57900 } /* Name.Label */ 51 | .highlight .nn { color: #000000 } /* Name.Namespace */ 52 | .highlight .nx { color: #000000 } /* Name.Other */ 53 | .highlight .py { color: #000000 } /* Name.Property */ 54 | .highlight .nt { color: #004461; font-weight: bold } /* Name.Tag */ 55 | .highlight .nv { color: #000000 } /* Name.Variable */ 56 | .highlight .ow { color: #004461; font-weight: bold } /* Operator.Word */ 57 | .highlight .w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */ 58 | .highlight .mb { color: #990000 } /* Literal.Number.Bin */ 59 | .highlight .mf { color: #990000 } /* Literal.Number.Float */ 60 | .highlight .mh { color: #990000 } /* Literal.Number.Hex */ 61 | .highlight .mi { color: #990000 } /* Literal.Number.Integer */ 62 | .highlight .mo { color: #990000 } /* Literal.Number.Oct */ 63 | .highlight .sa { color: #4e9a06 } /* Literal.String.Affix */ 64 | .highlight .sb { color: #4e9a06 } /* Literal.String.Backtick */ 65 | .highlight .sc { color: #4e9a06 } /* Literal.String.Char */ 66 | .highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */ 67 | .highlight .sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */ 68 | .highlight .s2 { color: #4e9a06 } /* Literal.String.Double */ 69 | .highlight .se { color: #4e9a06 } /* Literal.String.Escape */ 70 | .highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */ 71 | .highlight .si { color: #4e9a06 } /* Literal.String.Interpol */ 72 | .highlight .sx { color: #4e9a06 } /* Literal.String.Other */ 73 | .highlight .sr { color: #4e9a06 } /* Literal.String.Regex */ 74 | .highlight .s1 { color: #4e9a06 } /* Literal.String.Single */ 75 | .highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */ 76 | .highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */ 77 | .highlight .fm { color: #000000 } /* Name.Function.Magic */ 78 | .highlight .vc { color: #000000 } /* Name.Variable.Class */ 79 | .highlight .vg { color: #000000 } /* Name.Variable.Global */ 80 | .highlight .vi { color: #000000 } /* Name.Variable.Instance */ 81 | .highlight .vm { color: #000000 } /* Name.Variable.Magic */ 82 | .highlight .il { color: #990000 } /* Literal.Number.Integer.Long */ -------------------------------------------------------------------------------- /Kivy/Template/docs/_build/html/_static/searchtools.js: -------------------------------------------------------------------------------- 1 | /* 2 | * searchtools.js 3 | * ~~~~~~~~~~~~~~~~ 4 | * 5 | * Sphinx JavaScript utilities for the full-text search. 6 | * 7 | * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. 8 | * :license: BSD, see LICENSE for details. 9 | * 10 | */ 11 | 12 | if (!Scorer) { 13 | /** 14 | * Simple result scoring code. 15 | */ 16 | var Scorer = { 17 | // Implement the following function to further tweak the score for each result 18 | // The function takes a result array [filename, title, anchor, descr, score] 19 | // and returns the new score. 20 | /* 21 | score: function(result) { 22 | return result[4]; 23 | }, 24 | */ 25 | 26 | // query matches the full name of an object 27 | objNameMatch: 11, 28 | // or matches in the last dotted part of the object name 29 | objPartialMatch: 6, 30 | // Additive scores depending on the priority of the object 31 | objPrio: {0: 15, // used to be importantResults 32 | 1: 5, // used to be objectResults 33 | 2: -5}, // used to be unimportantResults 34 | // Used when the priority is not in the mapping. 35 | objPrioDefault: 0, 36 | 37 | // query found in title 38 | title: 15, 39 | partialTitle: 7, 40 | // query found in terms 41 | term: 5, 42 | partialTerm: 2 43 | }; 44 | } 45 | 46 | if (!splitQuery) { 47 | function splitQuery(query) { 48 | return query.split(/\s+/); 49 | } 50 | } 51 | 52 | /** 53 | * Search Module 54 | */ 55 | var Search = { 56 | 57 | _index : null, 58 | _queued_query : null, 59 | _pulse_status : -1, 60 | 61 | htmlToText : function(htmlString) { 62 | var virtualDocument = document.implementation.createHTMLDocument('virtual'); 63 | var htmlElement = $(htmlString, virtualDocument); 64 | htmlElement.find('.headerlink').remove(); 65 | docContent = htmlElement.find('[role=main]')[0]; 66 | if(docContent === undefined) { 67 | console.warn("Content block not found. Sphinx search tries to obtain it " + 68 | "via '[role=main]'. Could you check your theme or template."); 69 | return ""; 70 | } 71 | return docContent.textContent || docContent.innerText; 72 | }, 73 | 74 | init : function() { 75 | var params = $.getQueryParameters(); 76 | if (params.q) { 77 | var query = params.q[0]; 78 | $('input[name="q"]')[0].value = query; 79 | this.performSearch(query); 80 | } 81 | }, 82 | 83 | loadIndex : function(url) { 84 | $.ajax({type: "GET", url: url, data: null, 85 | dataType: "script", cache: true, 86 | complete: function(jqxhr, textstatus) { 87 | if (textstatus != "success") { 88 | document.getElementById("searchindexloader").src = url; 89 | } 90 | }}); 91 | }, 92 | 93 | setIndex : function(index) { 94 | var q; 95 | this._index = index; 96 | if ((q = this._queued_query) !== null) { 97 | this._queued_query = null; 98 | Search.query(q); 99 | } 100 | }, 101 | 102 | hasIndex : function() { 103 | return this._index !== null; 104 | }, 105 | 106 | deferQuery : function(query) { 107 | this._queued_query = query; 108 | }, 109 | 110 | stopPulse : function() { 111 | this._pulse_status = 0; 112 | }, 113 | 114 | startPulse : function() { 115 | if (this._pulse_status >= 0) 116 | return; 117 | function pulse() { 118 | var i; 119 | Search._pulse_status = (Search._pulse_status + 1) % 4; 120 | var dotString = ''; 121 | for (i = 0; i < Search._pulse_status; i++) 122 | dotString += '.'; 123 | Search.dots.text(dotString); 124 | if (Search._pulse_status > -1) 125 | window.setTimeout(pulse, 500); 126 | } 127 | pulse(); 128 | }, 129 | 130 | /** 131 | * perform a search for something (or wait until index is loaded) 132 | */ 133 | performSearch : function(query) { 134 | // create the required interface elements 135 | this.out = $('#search-results'); 136 | this.title = $('

' + _('Searching') + '

').appendTo(this.out); 137 | this.dots = $('').appendTo(this.title); 138 | this.status = $('

 

').appendTo(this.out); 139 | this.output = $('