Differences between using a .kv file and a Builder.load_string?

This page summarizes the projects mentioned and recommended in the original post on /r/kivy

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • kivy

    Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS

  • The file kivy/data/style.kv contains all kvlang rules for kivy core widgets. It's placed in a single file like this for performance -- accessing the filesystem is slow on some devices, inline code (or one file per widget) would entail a bunch of repeated function calls, which we want to avoid during application startup. The downside is that your widget implementation is now split across multiple files.

  • KivyMD

    KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd

  • Contrast with KivyMD, example, where the kvlang rules are implemented using inline call to Builder. load_string. This lets you keep related code in one file.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts