All notable changes to the "pykv-snippet" extension will be documented in this file. The format is based on Keep a Changelog.
The badges in README.md is updated. Nothing else is changed.
- about orientation (one of keywords of BoxLayout)
- you can select "vertical" or "horizontal".
- thus, the snippets "vertical" and "horizontal" have removed.
- add trigger words for callback arguments like on_press, on_release...
- for example, the trigger word of snippet for
on_press = callback
was onlyonpress
before, but nowon_press
is OK and it is natural.
- for example, the trigger word of snippet for
I forgot writing CHANGELOG...
-
Most all snippets for keyword argument in python is ended with "="
- While "onpress" -> "on_press" before, "onpress" -> "on_press=${1:callback}" now.
-
changed some prefix in KvLang
- pad -> padding
- fontsize -> font_size
-
changed some snippets
- from "size_hint" -> "size_hint: " to "size_hint" -> "size_hint: $1, $2"
- from "pos_hint" -> "pos_hint: {$1, $2}$0" to "pos_hint" -> "pos_hint: {'${1|x,right,center_x|}':
$2, '$ {3|y,top,center_y|}': $4}$0"- in order to allow you to write KvLang comfortably.
- New import snippets
- kvbuilder -> from kivy.lang.builder import Builder
- New keyword snippet in kivy
- size_hint -> size_hint:
- pos_hint -> pos_hint: {$1, $2}
- changed some prefix in python
- poshint -> pos_hint
- sizehint -> size_hint
- fontsize -> font_size
- New import snippets
- kvfactory -> from kivy.factory import Factory
- New keyword snippet
- poshint -> pos_hint={'x':, 'y'}
-
New import snippets
- kvimage -> from kivy.uix.image import Image
- kvwin -> from kivy.core.window import Window
- kvcarousel -> from kivy.uix.carousel import Carousel
-
New Kivy snippets
- rect -> rectangle:
- color -> Color:
- color -> color:
-
Support Lang Directives (#: comments) snippets
- #: set
- #: import
- #: include
-
New import snippets
- kvconfig -> from kivy.config import Config
- kvimport -> from kivy.$1 import $2
-
New Kivy snippets
- ontext -> on_text:
- ontextvalidate -> on_text_validate:
-
New import snippets
- kvanim -> from kivy.animation import Animation
-
New snippets : some keyword argments of kivy in .py files.
- e.g. sx -> size_hint_x mainly used in Widget().
- and background_color, duration, opacity mainly used in Animation().
- in additon, on_press, on_start and so on used in Widget.bind().
- prefix changed.
- kvstart -> kvtemplate
- coz I often select kvstack by mistake.
- kvstart -> kvtemplate
- Set version 1.0.3
- rename some files in git.
- Minor changes.
- Initial release