Kivy has a GUI design tool called Kivy-Designer. This is a note when Kivy-Designer is installed on Windows.
GitHub - kivy/kivy-designer: UI designer for Kivy (WIP) https://github.com/kivy/kivy-designer
This note basically follows the steps linked below. Reference: Installation — Kivy Designer 0.9 documentation https://kivy-designer.readthedocs.io/en/latest/installation.html
conda create -n py35 python = 3.5
Install Kivy from the following. Installing Kivy on Windows10 64bit Python3.5-Qiita http://qiita.com/Superable/items/1ddb3aafa24d303a0b00
When using git, download the source code to a suitable location with git clone http://github.com/kivy/kivy-designer/
.
If you don't use git, zip from https://github.com/kivy/kivy-designer/archive/master.zip Download the file and unzip it to a suitable location.
-master
will be added to the folder name, so change it if necessary.The packages required for operation are described in requirements.txt
in the downloaded folder [^ 1].
[^ 1]: In my environment, pip install kivy
failed, so Kivy
and Kivy-Garden
are pre-installed. Installing Kivy on Windows10 64bit Python3.5-Qiita
requirements.txt
kivy >= 1.9.1
pygments >= 2.1
docutils >= 0.12
watchdog >= 0.8
jedi >= 0.9
gitpython >= 1.0
six >= 1.10.0
kivy-garden
Install all the required packages with the following command.
cmd.exe
cd kivy-designer
pip install -Ur requirements.txt
kivy-garden.garden.FileBrowser
is a file selection dialog widget for Kivy
. Download and install the widget with the following command.
cmd.exe
garden install filebrowser
cmd.exe
cd "C:\Program Files\Anaconda3\envs\py35\Scripts"
python garden install filebrowser
The following command will start Kivy-Designer.
cmd.exe
cd kivy-designer
python -m designer
I think it is convenient to create a batch file for startup, save it in the kivy-designer
folder, and use it (* Support for each Python environment is required).
kivy-designer.bat
cd /d %~dp0
python -m designer
At the moment (2017/01), the operation is quite unstable, so it seems better to proceed with development with a separate text editor etc. by referring to the kv file generated by arranging the basic parts on Kivy-Designer.
Recommended Posts