<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Kivy</id>
	<title>Kivy - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Kivy"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Kivy&amp;action=history"/>
	<updated>2026-07-20T06:16:41Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Kivy&amp;diff=2613928&amp;oldid=prev</id>
		<title>imported&gt;AromaTake：​/* top */ 修飾語句</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Kivy&amp;diff=2613928&amp;oldid=prev"/>
		<updated>2024-12-17T01:51:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;top：​&lt;/span&gt; 修飾語句&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{noteTA|G1=IT}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = Kivy&lt;br /&gt;
| logo = Kivy logo.png&lt;br /&gt;
| logo size = 80px&lt;br /&gt;
| screenshot = &lt;br /&gt;
| caption = &lt;br /&gt;
| screenshot size = &lt;br /&gt;
| screenshot alt = &lt;br /&gt;
| collapsible = &lt;br /&gt;
| developer = Kivy組織&lt;br /&gt;
| released = {{Start date and age|2011|02|01}}&amp;lt;ref name=changelog&amp;gt;{{Cite web |url=http://kivy.org/#changelog |title=存档副本 |accessdate=2015-09-12 |archive-date=2015-09-01 |archive-url=https://web.archive.org/web/20150901074420/http://kivy.org/#changelog |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| latest release version = 2.1.0&lt;br /&gt;
| latest release date = {{Start date and age|2022|3|6|df=yes}}&amp;lt;ref&amp;gt;{{cite web&lt;br /&gt;
| url=https://github.com/kivy/kivy/releases/tag/2.1.0&lt;br /&gt;
| title=Kivy 2.1.0&lt;br /&gt;
| author=&amp;lt;!--Not stated--&amp;gt;&lt;br /&gt;
| date=2022-03-06&lt;br /&gt;
| website=github.com&lt;br /&gt;
| access-date=2022-06-24&lt;br /&gt;
| archive-date=2022-06-28&lt;br /&gt;
| archive-url=https://web.archive.org/web/20220628010734/https://github.com/kivy/kivy/releases/tag/2.1.0&lt;br /&gt;
| dead-url=no&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| programming language = [[Python]]，[[Cython]]&lt;br /&gt;
| operating system = [[跨平台]]&lt;br /&gt;
| status = 運行中&lt;br /&gt;
| genre = 應用框架&lt;br /&gt;
| license = [[MIT許可證|MIT]] ([[自由软件]])&lt;br /&gt;
| website = {{URL|kivy.org}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Kivy&amp;#039;&amp;#039;&amp;#039;是開源[[Python]]函式庫，用於開發[[行動應用程式]]和其它採用[[自然用户界面]]的[[多點觸控]][[應用軟件]]。它可以在[[Android]]，[[iOS]]，[[Linux]]，[[OS X]]和[[Microsoft Windows|Windows]]執行。採用[[MIT許可證|MIT]]授權條款，Kivy是[[自由软件|自由]]並且[[开源软件|開源的軟件]]。&lt;br /&gt;
&lt;br /&gt;
Kivy的主要架構由Kivy組織開發，&amp;lt;ref&amp;gt;{{citation |url=http://kivy.org/#aboutus |title=About us |work=kivy.org |accessdate=2015-09-12 |archive-date=2015-09-01 |archive-url=https://web.archive.org/web/20150901074420/http://kivy.org/#aboutus |dead-url=no }}&amp;lt;/ref&amp;gt; 並有Python用於Android，&amp;lt;ref&amp;gt;{{citation |url=https://github.com/kivy/python-for-android |title=Python for Android |work=github.com |accessdate=2015-09-14 |archive-date=2021-01-02 |archive-url=https://web.archive.org/web/20210102113828/https://github.com/kivy/python-for-android |dead-url=no }}&amp;lt;/ref&amp;gt;Kivy iOS，&amp;lt;ref&amp;gt;{{citation |url=https://github.com/kivy/kivy-ios |title=Kivy for iOS |work=github.com |accessdate=2015-09-14 |archive-date=2021-01-01 |archive-url=https://web.archive.org/web/20210101215419/https://github.com/kivy/kivy-ios |dead-url=no }}&amp;lt;/ref&amp;gt;和其它許多函式庫被使用在所有平台。在2012年，Kivy從[[Python軟體基金會]]獲得$5000美元補助，用於移植Kivy到Python 3.3。&amp;lt;ref&amp;gt;{{citation |url=https://groups.google.com/d/topic/kivy-users/5Z_UJOoBeIc/discussion |title=Kivy and Python 3.3, project started |work=Google Groups}}&amp;lt;/ref&amp;gt;因有{{le|Bountysource}}集資贊助的緣故，Kivy也支援[[樹莓派]]。&amp;lt;ref&amp;gt;{{citation |url=https://www.bountysource.com/#fundraisers/143-kivy-on-raspberry-pi |title=Kivy on Raspberry Pi |work=bountysource.com |accessdate=2015-09-14 |archive-date=2006-11-19 |archive-url=https://web.archive.org/web/20061119221820/https://dev.bountysource.com/#fundraisers/143-kivy-on-raspberry-pi |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
其架構包括所有建造應用程式的元素，例如：&lt;br /&gt;
* 支援許多種輸入，例如滑鼠，鍵盤、觸控式使用者介面(TUIO)和特定作業系統的多重觸控事件，&lt;br /&gt;
* 只採用[[OpenGL ES|OpenGL ES 2]]的圖形函式庫，且根基於向量緩衝物件(Vertex Buffer Object)和[[著色器]]，&lt;br /&gt;
* 支援[[多點觸控]]的龐大[[控制項]]，&lt;br /&gt;
* 一個中間語言(Kv)&amp;lt;ref&amp;gt;{{citation |url=http://kivy.org/docs/guide/kvlang.html |chapter=Programming Guide |title=Introduction to the Kivy Language |work=kivy.org |deadurl=yes |archiveurl=https://web.archive.org/web/20120120050539/http://kivy.org/docs/guide/kvlang.html |archivedate=2012-01-20 |accessdate=2015-09-14 }}&amp;lt;/ref&amp;gt;用來簡化客製控制項的設計。&lt;br /&gt;
&lt;br /&gt;
Kivy改良了PyMT專案，並且推薦給新的專案採用。&amp;lt;ref&amp;gt;{{citation |url=http://kivy.org/docs/faq.html#how-is-kivy-related-to-pymt |title=FAQ: How is Kivy related to PyMT? |work=kivy.org |accessdate=2012-06-09 |archive-date=2017-09-21 |archive-url=https://web.archive.org/web/20170921145014/https://kivy.org/docs/faq.html#how-is-kivy-related-to-pymt |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==程式範例==&lt;br /&gt;
以下是一個按鈕的[[Hello World]]程式範例：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from kivy.app import App&lt;br /&gt;
from kivy.uix.button import Button&lt;br /&gt;
&lt;br /&gt;
class TestApp(App):&lt;br /&gt;
    def build(self):&lt;br /&gt;
        return Button(text=&amp;#039;Hello World&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
TestApp().run()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Kv 語言==&lt;br /&gt;
Kivy語言(Kv)是致力於描述使用者介面和與使用者互動的一種語言。就像[[QML]]，它能夠簡單的建造整個使用者介面並加上互動。例如，建造一個包括檔案瀏覽器，和取消/載入按鈕的對話框，它能夠採用Python快速的造出基本的控制項，之後用Kv造出使用者介面。&lt;br /&gt;
&lt;br /&gt;
在main.py：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
class LoadDialog(FloatLayout):&lt;br /&gt;
    def load(self, filename): pass&lt;br /&gt;
    def cancel(self): pass&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
並且在相關的Kv：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#:kivy 1.4.0&lt;br /&gt;
&amp;lt;LoadDialog&amp;gt;:&lt;br /&gt;
    BoxLayout:&lt;br /&gt;
        size: root.size&lt;br /&gt;
        pos: root.pos&lt;br /&gt;
        orientation: &amp;quot;vertical&amp;quot;&lt;br /&gt;
        FileChooserListView:&lt;br /&gt;
            id: filechooser&lt;br /&gt;
&lt;br /&gt;
        BoxLayout:&lt;br /&gt;
            size_hint_y: None&lt;br /&gt;
            height: 30&lt;br /&gt;
            Button:&lt;br /&gt;
                text: &amp;quot;Cancel&amp;quot;&lt;br /&gt;
                on_release: root.cancel()&lt;br /&gt;
&lt;br /&gt;
            Button:&lt;br /&gt;
                text: &amp;quot;Load&amp;quot;&lt;br /&gt;
                on_release: root.load(filechooser.path, filechooser.selection)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==外部鍵結==&lt;br /&gt;
* {{Official website|http://www.kivy.org}}&lt;br /&gt;
* [https://code.google.com/p/pymt/ PyMT project] {{Wayback|url=https://code.google.com/p/pymt/ |date=20160818054641 }}&lt;br /&gt;
&lt;br /&gt;
==參考文獻==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Python库]]&lt;/div&gt;</summary>
		<author><name>imported&gt;AromaTake</name></author>
	</entry>
</feed>