GithubHelp home page GithubHelp logo

kitchensink's Introduction

KivyMD 2.0.0

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications.

The project's goal is to approximate Google's Material Design spec as close as possible without sacrificing ease of use. This library is a fork of the KivyMD project. We found the strength and brought this project to a new level.

Join the project! Just fork the project, branch out and submit a pull request when your patch is ready. If any changes are necessary, we'll guide you through the steps that need to be done via PR comments or access to your for may be requested to outright submit them.

If you wish to become a project developer (permission to create branches on the project without forking for easier collaboration), have at least one PR approved and ask for it. If you contribute regularly to the project the role may be offered to you without asking too.

PyPI version Supported Python versions Downloads Code style: Black

Discord Twitter YouTube Habr StackOverflow Open Collective

Coverage status Build workflow Test workflow Documentation status Repository size

Installation

pip install kivymd==2.0.0

Dependencies:

How to install

Command above will install latest release version of KivyMD from PyPI.

If you want to install development version from master branch, you should specify link to zip archive:

pip install https://github.com/kivymd/KivyMD/archive/master.zip

Tip: Replace master.zip with <commit hash>.zip (eg 51b8ef0.zip) to download KivyMD from specific commit.

Also you can install manually from sources. Just clone the project and run pip:

git clone https://github.com/kivymd/KivyMD.git --depth 1
cd KivyMD
pip install .

Speed Tip: If you don't need full commit history (about 1.14 GiB), you can use a shallow clone (git clone https://github.com/kivymd/KivyMD.git --depth 1) to save time. If you need full commit history, then remove --depth 1.

How to use with Buildozer

requirements = python3,
    kivy,
    https://github.com/kivymd/KivyMD/archive/master.zip,
    materialyoucolor,
    exceptiongroup,
    asyncgui,
    asynckivy

This will download latest release version of KivyMD from PyPI.

If you want to use development version from master branch, you should specify link to zip archive:

requirements = kivy, https://github.com/kivymd/KivyMD/archive/master.zip

Do not forget to run buildozer android clean or remove .buildozer directory before building if version was updated (Buildozer doesn't update already downloaded packages).

On Linux

On Windows 10

Build automatically via GitHub Actions

How to use with kivy-ios

toolchain build python3 kivy pillow
toolchain pip install --no-deps kivymd

Documentation

Demos

Kitchen sink app demonstrates every KivyMD widget. You can see how to use widget in code of app.

Comparison of Flutter & KivyMD

Sky View Concept Healthy Food Delivery
Asics Shoes Concept Facebook Desktop Redesign

Use MVC and Hot Reload

Support

If you need assistance or you have a question, you can ask for help on our mailing list:

Settings

Promo Video

Contributing

We always welcome your Bug reports, Feature requests and Pull requests! Check out CONTRIBUTING.md and feel free to improve KivyMD.

Setup environment

We recommend you to use PyCharm to work with KivyMD code. Install Kivy and development dependencies to your virtual environment:

pip install -e .[dev,docs]
pre-commit install

Format all files and run tests:

pre-commit run --all-files
pytest kivymd/tests --timeout=600 --cov=kivymd --cov-report=term

pre-commit will format modified files with Black and sort imports with isort.

Sister projects

KivyMD Extensions

Additional extensions for the KivyMD library.

https://github.com/kivymd-extensions

KivyMDBuilder

Build apps visually.

https://github.com/kivymd/KivyMDBuilder

License

Contributors

KivyMD Team

They spent a lot of time to improve KivyMD.

  • Yuri Ivanov @HeaTTheatR - Core developer
  • Artem Bulgakov @ArtemSBulgakov - Technical administrator, contributor
  • Andrés Rodríguez @mixedCase - First author of KivyMD project, contributor

Code Contributors

This project exists thanks to all the people who contribute. How to contribute

Financial Contributors

Become a financial contributor on OpenCollective and help us sustain our community.

Gold Sponsors

Become a Gold Sponsor and get your logo on our Readme with a link to your website.

Backers

Become a Backer if you want to help develop this project.

kitchensink's People

Contributors

heattheatr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kitchensink's Issues

"Build failed" - no APK is downloadable

Hello,
can a working APK of this project be downloaded somewhere?
All recent builds are marked "failed", and the 3 months old one is "expired" and can't be downloaded.
Thank you.

The version of Kivy installed on this system is too old

Hi,
when i run python main.py i get error: The version of Kivy installed on this system is too old, but the application requires 2.2.0
My kivy version is 2.1.0 and my python is : 3.10.8
whene i try to install kivy v 2.2.0 by this command: python -m pip install kivy==2.2.0 i get error:

ERROR: Could not find a version that satisfies the requirement kivy==2.2.0 (from versions: 1.0.1a0, 1.0.2a0, 1.0.3a0, 1.0.4b0, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1, 2.0.0rc1, 2.0.0rc2, 2.0.0rc3, 2.0.0rc4, 2.0.0, 2.1.0.dev0, 2.1.0rc1, 2.1.0rc2, 2.1.0rc3, 2.1.0)
ERROR: No matching distribution found for kivy==2.2.0

Thank You

kivymd in the path fails to start application

Description of the Bug

  • KitchenSink (master) fails to run when there is a kivymd in the path :-(
  • At first I have cloned KitchenSink repo to kivymd-KitchenSink.git and that caused application crash on start.
  • The same situation is when code is in ~/kivymd/KitchenSink.git.
  • Moving to a location with no kivymd anywhere in the path fixed the issue.
  • That should be no problem where I run the app from? :-)
  • I hope this is not the case for all KivyMD apps??

Code and Logs

(venv3.9embedded) python main.py
[INFO   ] [Logger      ] Record log in /XXX/.kivy/logs/kivy_22-08-15_2.txt
[INFO   ] [Kivy        ] v2.1.0
[INFO   ] [Kivy        ] Installed at "/XXX/.local/venv3.9embedded/lib/python3.9/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.9.13 (main, May 19 2022, 01:16:32)
[Clang 11.0.1 ([email protected]:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c
[INFO   ] [Python      ] Interpreter at "/XXX/.local/venv3.9embedded/bin/python"
[INFO   ] [Logger      ] Purge log fired. Processing...
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [Factory     ] 189 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          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'4.6 (Compatibility Profile) Mesa 21.3.8'>
[INFO   ] [GL          ] OpenGL vendor <b'AMD'>
[INFO   ] [GL          ] OpenGL renderer <b'AMD Radeon RX 580 Series (POLARIS10, DRM 3.35.0, 13.1-STABLE, LLVM 13.0.1)'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60'>
[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   ] [KivyMD      ] 1.0.2, git-38fe356, 2022-08-11 (installed at "/XXX/.local/venv3.9embedded/lib/python3.9/site-packages/kivymd/__init__.py")
[INFO   ] [Text        ] Provider: sdl2(['text_pango'] ignored)
[INFO   ] [GL          ] NPOT texture support is available
[CRITICAL] [KivyMD      ] Do not use the word 'kivymd' in the name of the directory from where you download KV files
[CRITICAL] [KivyMD      ] Do not use the word 'kivymd' in the name of the directory from where you download KV files
[CRITICAL] [KivyMD      ] Do not use the word 'kivymd' in the name of the directory from where you download KV files
[CRITICAL] [KivyMD      ] Do not use the word 'kivymd' in the name of the directory from where you download KV files
[CRITICAL] [KivyMD      ] Do not use the word 'kivymd' in the name of the directory from where you download KV files
[CRITICAL] [KivyMD      ] Do not use the word 'kivymd' in the name of the directory from where you download KV files
 Traceback (most recent call last):
   File "kivy/properties.pyx", line 961, in kivy.properties.ObservableDict.__getattr__
 KeyError: 'menu_list'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "/XXX/kivymd-KitchenSink.git/main.py", line 34, in <module>
     KitchenSink().run()
   File "/XXX/.local/venv3.9embedded/lib/python3.9/site-packages/kivy/app.py", line 954, in run
     self._run_prepare()
   File "/XXX/.local/venv3.9embedded/lib/python3.9/site-packages/kivy/app.py", line 924, in _run_prepare
     root = self.build()
   File "/XXX/kivymd-KitchenSink.git/main.py", line 30, in build
     self.manager_screen.add_widget(self.manager_screen.create_screen("menu"))
   File "/XXX/.local/venv3.9embedded/lib/python3.9/site-packages/kivy/uix/screenmanager.py", line 1001, in add_widget
     self.current = widget.name
   File "kivy/properties.pyx", line 520, in kivy.properties.Property.__set__
   File "kivy/properties.pyx", line 567, in kivy.properties.Property.set
   File "kivy/properties.pyx", line 606, in kivy.properties.Property._dispatch
   File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
   File "kivy/_event.pyx", line 1213, in kivy._event.EventObservers._dispatch
   File "/XXX/kivymd-KitchenSink.git/View/ManagerScreen/manager_screen.py", line 26, in on_current
     super().on_current(*args)
   File "/XXX/.local/venv3.9embedded/lib/python3.9/site-packages/kivy/uix/screenmanager.py", line 1069, in on_current
     screen.dispatch('on_enter')
   File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
   File "/XXX/kivymd-KitchenSink.git/View/MenuScreen/menu_screen.py", line 10, in on_enter
     if not self.ids.menu_list.data:
   File "kivy/properties.pyx", line 964, in kivy.properties.ObservableDict.__getattr__
 AttributeError: 'super' object has no attribute '__getattr__'

Screenshots

No screenshot available. Application fail to start.

Versions

  • OS: FreeBSD 13-STABLE.
  • Python: 3.9.13 (in Virtual Env).
  • Kivy: 2.1.0 (release).
  • KivyMD: master (4e3b756).

bad screen on windows

I run new-cloned KitchenSink on windows 10 64 bits, with

Kivy-Garden-0.1.5 
kivy-2.2.1 
kivy-deps.angle-0.3.3 
kivy-deps.glew-0.3.1 
kivy-deps.sdl2-0.6.0 
kivymd-1.1.1 
pypiwin32-223

on the main page, I use mouse wheel to scroll down, but I get this image with unneeded black block
bug

Code generated. Portions cause the app to crash.

Build Environment
Colab (202304) w/latest versions

App generated with some environment generated warnings but complete APK was finalized. Running application fails when the following screens are selected:

Button
Chip
Field
Rail

All other screens are functional with some inconsistencies.

Example of screen inconsistency:
On the 'Hero' screen pressing any button (first press), animates the heading. Any other button pressed after the first one does not perform the animation. Pressing the first button again shows the animation.

I presume that Bug Reports #5 and #6 are BOTH related.

buildozer.spec file attached:
buildozer.spec.txt
Built only for APK 31 and armV8 only.

Kitchensink: new installation on MacOS Kivy 2.2.0 KivyMD 1.1.1. erro in menu_screen.py

Description of the Bug

After a fresh install the Kitchensink app does not work. A screen is opened but the app crashes immediately.
any advice ?

thanks in advance

Code and Logs

python main.py
[INFO ] [Logger ] Record log in /Users/ghislainborremans/.kivy/logs/kivy_23-03-08_8.txt
[INFO ] [Kivy ] v2.2.0.dev0
[INFO ] [Kivy ] Installed at "/usr/local/lib/python3.10/site-packages/kivy/init.py"
[INFO ] [Python ] v3.10.10 (main, Feb 8 2023, 05:44:38) [Clang 14.0.0 (clang-1400.0.29.202)]
[INFO ] [Python ] Interpreter at "/usr/local/opt/[email protected]/bin/python3.10"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 190 symbols loaded
pygame 2.2.0 (SDL 2.0.22, Python 3.10.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
[INFO ] [Image ] Providers: img_tex, img_imageio, img_dds, img_pygame, img_pil (img_ffpyplayer ignored)
[INFO ] [Window ] Provider: pygame
[WARNING] [Deprecated ] Pygame has been deprecated and will be removed after 1.11.0: Call to deprecated function init in /usr/local/lib/python3.10/site-packages/kivy/core/window/window_pygame.py line 42.Called from /usr/local/lib/python3.10/site-packages/kivy/core/init.py line 71 by core_select_lib().
[INFO ] [GL ] Using the "OpenGL ES 2" graphics system
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version <b'2.1 INTEL-18.8.6'>
[INFO ] [GL ] OpenGL vendor <b'Intel Inc.'>
[INFO ] [GL ] OpenGL renderer <b'Intel(R) HD Graphics 6000'>
[INFO ] [GL ] OpenGL parsed version: 2, 1
[INFO ] [GL ] Shading version <b'1.20'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [KivyMD ] 1.2.0.dev0, git-Unknown, 2023-03-08 (installed at "/usr/local/lib/python3.10/site-packages/kivymd/init.py")
[INFO ] [Text ] Provider: pygame
[INFO ] [Clipboard ] Provider: pygame(['clipboard_nspaste'] ignored)
Traceback (most recent call last):
File "kivy/properties.pyx", line 961, in kivy.properties.ObservableDict.getattr
KeyError: 'menu_list'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/ghislainborremans/kivy_venv/mymd/KitchenSink-main/main.py", line 37, in
KitchenSink().run()
File "/usr/local/lib/python3.10/site-packages/kivy/app.py", line 955, in run
self._run_prepare()
File "/usr/local/lib/python3.10/site-packages/kivy/app.py", line 925, in _run_prepare
root = self.build()
File "/Users/ghislainborremans/kivy_venv/mymd/KitchenSink-main/main.py", line 33, in build
self.manager_screen.add_widget(self.manager_screen.create_screen("menu"))
File "/usr/local/lib/python3.10/site-packages/kivy/uix/screenmanager.py", line 1001, in add_widget
self.current = widget.name
File "kivy/properties.pyx", line 520, in kivy.properties.Property.set
File "kivy/properties.pyx", line 567, in kivy.properties.Property.set
File "kivy/properties.pyx", line 606, in kivy.properties.Property._dispatch
File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
File "kivy/_event.pyx", line 1213, in kivy._event.EventObservers._dispatch
File "/Users/ghislainborremans/kivy_venv/mymd/KitchenSink-main/View/ManagerScreen/manager_screen.py", line 27, in on_current
super().on_current(*args)
File "/usr/local/lib/python3.10/site-packages/kivy/uix/screenmanager.py", line 1069, in on_current
screen.dispatch('on_enter')
File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
File "/Users/ghislainborremans/kivy_venv/mymd/KitchenSink-main/View/MenuScreen/menu_screen.py", line 10, in on_enter
if not self.ids.menu_list.data:
File "kivy/properties.pyx", line 964, in kivy.properties.ObservableDict.getattr
AttributeError: 'super' object has no attribute 'getattr'. Did you mean: 'setattr'?

Versions

  • OS: MacOS
  • Python: 3.10
  • Kivy: 2.2.0
  • KivyMD: 1.1.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.