- If you didn't do it yet, read the PEP8 about coding style in python http://www.python.org/dev/peps/pep-0008/.
- Activate pep8 check on git commit like this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <YourWidget>: | |
| canvas.before: | |
| Color: | |
| rgb: self.variable_color | |
| Rectangle: | |
| pos: self.pos | |
| size: self.size | |
| <MyScrollView>: | |
| canvas: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BoxLayout: | |
| orientation: 'horizontal' | |
| Button: | |
| size_hint_y: .5 | |
| center_y: root.center_y | |
| Button: | |
| Button: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # APPLOADER - An apploader that loads apps using the screen manager | |
| #imports | |
| from kivy.app import App | |
| #from kivy.properties import NumericProperty | |
| from kivy.lang import Builder | |
| from kivy.uix.screenmanager import ScreenManager, Screen, SwapTransition | |
| from kivy.properties import ObjectProperty | |
| from subprocess import call | |
| from kivy.base import EventLoop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'. | |
| The filters to be applied to the files in the directory. | |
| The filters are not reset when the path changes. You need to do that | |
| yourself if desired. | |
| There are two kinds of filters : | |
| filename patterns : e.g. ['\*.png']. | |
| You can use the following patterns: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'. | |
| The filters to be applied to the files in the directory. | |
| The filters are not reset when the path changes. You need to do that | |
| yourself if desired. | |
| There are two kinds of filters : | |
| filename patterns : e.g. ['\*.png']. | |
| You can use the following patterns: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'. | |
| The filters to be applied to the files in the directory. | |
| The filters are not reset when the path changes. You need to do that | |
| yourself if desired. | |
| There are two kinds of filters : | |
| filename patterns : e.g. ['\*.png']. | |
| You can use the following patterns: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''':class:`~kivy.properties.ListProperty`, defaults to [], equal to '\*'. | |
| The filters to be applied to the files in the directory. | |
| The filters are not reset when the path changes. You need to do that | |
| yourself if desired. | |
| There are two kinds of filters : | |
| filename patterns : e.g. ['\*.png']. | |
| You can use the following patterns: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " show insecable spaces that i sometime insert by accident | |
| hi insecable ctermbg=red cterm=NONE guibg=red | |
| match insecable / / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "hide passwords when editing (you can use select mode to see it), doesn't work | |
| "with all terminal types, but useful | |
| hi Password ctermfg=black ctermbg=black cterm=NONE guifg=black guibg=black | |
| match Password /pass.*\s*=\s*\k\{-}\zs[^ ]*\ze.\{-}/ |