Python Forum
Kivy 2.0.0 released - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Kivy 2.0.0 released (/thread-31428.html)



Kivy 2.0.0 released - buran - Dec-10-2020

https://github.com/kivy/kivy/releases/tag/2.0.0

Quote:The Kivy team is happy to announce the release of Kivy 2.0.0.

Kivy is a full-featured framework for creating novel and performant user
interfaces, such as multi-touch applications, released under the MIT license.
The framework works on Windows, macOS, Linux, Android, iOS and Raspberry Pi.

This is the first release to not support Python 2.7 - hence the increase in Kivy's major version to 2. Currently supported Python versions are 3.6 - 3.9.
Installation has been largely simplified and all platforms now support a simpler pip install (see below).

Installation instructions and Kivy documentation is available on the Kivy website



RE: Kivy 2.0.0 released - snippsat - Dec-10-2020

Nice to see that simplify install process and can now use pip.
So a quick test,making virtual environment install Kivy and get GUI demo up took me about 2-3 minute.

A demo:
# Make environment 
G:\div_code
λ python -m venv kivy_env

# Cd in 
G:\div_code
λ cd kivy_env\

# Activate 
G:\div_code\kivy_env
λ G:\div_code\kivy_env\Scripts\activate

# Install kivy
(kivy_env) G:\div_code\kivy_env
λ pip install kivy[base] kivy_examples
Collecting kivy[base]
  Downloading .....
Successfully installed Kivy-Garden-0.1.4 certifi-2020.12.5 chardet-3.0.4 docutils-0.16
idna-2.10 kivy-2.0.0 kivy-deps.angle-0.3.0 kivy-deps.glew-0.3.0 kivy-deps.sdl2-0.3.1
kivy-examples-2.0.0 pillow-8.0.1 pygments-2.7.3 pypiwin32-223 pywin32-300 requests-2.25.0 urllib3-1.26.2

# To demo folder
(kivy_env) G:\div_code\kivy_env
λ cd share\kivy-examples\demo\showcase

# List files
(kivy_env) G:\div_code\kivy_env\share\kivy-examples\demo\showcase
λ ls
README.txt  __pycache__/  android.txt  data/  main.py  showcase.kv

# Start Demo
(kivy_env) G:\div_code\kivy_env\share\kivy-examples\demo\showcase
λ python main.py
[INFO   ] [Logger      ] Record log in C:\Users\Tom\.kivy\logs\kivy_20-12-10_0.txt
[INFO   ] [deps        ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.glew" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.sdl2" 0.3.1
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "G:\div_code\kivy_env\lib\site-packages\kivy\__init__.py"
[INFO   ] [Python      ] v3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "G:\div_code\kivy_env\Scripts\python.exe"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] Backend used <glew>
[INFO   ] [GL          ] OpenGL version <b'4.6.0 NVIDIA 441.20'>
[INFO   ] [GL          ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GeForce GTX 970/PCIe/SSE2'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60 NVIDIA'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[WARNING] [Accordion   ] not enough space for displaying all children
[WARNING] [Accordion   ] need 132px, got 84px
[WARNING] [Accordion   ] layout aborted.
[WARNING] [Accordion   ] not enough space for displaying all children
[WARNING] [Accordion   ] need 132px, got 84px
[WARNING] [Accordion   ] layout aborted.
[Image: JNAthb.png]