Svoboda | Graniru | BBC Russia | Golosameriki | Facebook

To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Kivy (framework)

From Wikipedia, the free encyclopedia

Kivy
Developer(s)Kivy organization
Initial release1 February 2011; 13 years ago (2011-02-01)[1]
Stable release
2.3.0 / 5 January 2024; 2 months ago (2024-01-05)[2]
Repositorygithub.com/kivy/kivy
Written inPython, Cython
Operating systemCross-platform
TypeApplication framework
LicenseMIT (Free software)
Websitekivy.org

Kivy is a free and open source Python framework for developing mobile apps and other multitouch application software with a natural user interface (NUI). It is distributed under the terms of the MIT License, and can run on Android, iOS, Linux, macOS, and Windows.

Kivy is the main framework developed by the Kivy organization,[3] alongside Python for Android,[4] Kivy for iOS,[5] and several other libraries meant to be used on all platforms. In 2012, Kivy got a $5000 grant from the Python Software Foundation for porting it to Python 3.3.[6] Kivy also supports the Raspberry Pi which was funded through Bountysource.[7]

The framework contains all the elements for building an application such as:

Kivy is an evolution of the PyMT project.[9]

YouTube Encyclopedic

  • 1/3
    Views:
    3 214
    104 536
    21 158
  • Mathieu Virbel - Kivy, versatile framework for mobile and desktop
  • 🔴 Desenvolvimento de Aplicações Comerciais com Python e Kivy
  • Kivy with Python tutorial Part 5 - Dynamic Resizable Placement

Transcription

Code example

Here is an example of the Hello world program with just one button:

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text="Hello World")

TestApp().run()

Kv language

The Kv language is a language dedicated to describing user interface and interactions in Kivy framework. As with other user interface markup languages, it is possible to easily create a whole UI and attach interaction. For example, to create a Loading dialog that includes a file browser, and a Cancel / Load button, one could first create the base widget in Python and then construct the UI in Kv.

In main.py:

class LoadDialog(FloatLayout):
    def load(self, filename): pass
    def cancel(self): pass

And in the associated Kv:

#:kivy 1.11.1

<LoadDialog>:
    BoxLayout:
        size: root.size
        pos: root.pos
        orientation: "vertical"

        FileChooserListView:
            id: filechooser

        BoxLayout:
            size_hint_y: None
            height: 30

            Button:
                text: "Cancel"
                on_release: root.cancel()

            Button:
                text: "Load"
                on_release: root.load(filechooser.path, filechooser.selection)

Alternatively, the layout (here, Box Layout) and the buttons can be loaded directly in the main.py file.

Related projects

Google Summer of Code

Kivy participated in Google Summer of Code under the Python Software Foundation.

  • Kivy in GSoC'2014.[10]
  • Kivy in GSoC'2015.[11]
  • Kivy in GSoC'2016.[12]
  • Kivy in GSoC'2017.[13]

See also

References

  1. ^ "Kivy changelog", kivy.org, retrieved 2016-04-05
  2. ^ "Kivy 2.3.0". github.com. 2024-01-05. Retrieved 2024-03-22.
  3. ^ "About us", kivy.org
  4. ^ "Python for Android", github.com
  5. ^ "Kivy for iOS", github.com
  6. ^ "Kivy and Python 3.3, project started", Google Groups
  7. ^ "Kivy on Raspberry Pi", bountysource.com
  8. ^ "Programming Guide » Kv language", kivy.org
  9. ^ "FAQ: How is Kivy related to PyMT?", kivy.org, retrieved 2012-06-09
  10. ^ "Google Summer of Code 2014 @ the Python Software Foundation".
  11. ^ "Google Summer of Code 2015 @ the Python Software Foundation".
  12. ^ "Google Summer of Code 2016 @ the Python Software Foundation".
  13. ^ "Google Summer of Code 2017 @ the Python Software Foundation".

External links

This page was last edited on 22 March 2024, at 17:01
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.