<p>您可以使用<code>Float Layout</code></p>
<p>将此添加到main.py文件中</p>
<pre><code>from kivy.uix.floatlayout import FloatLayout
...
btn1 = Button(text = "click 1",pos=(200, 200),size_hint = (.1,.1))
btn2 = Button(text = "click 2", pos=(200, 100),size_hint = (.1,.1))
btn3 = Button(text = "click 3", pos=(50, 100),size_hint = (.1,.1))
</code></pre>
<p>或者</p>
<pre><code>btn1 = Button(text = "click 1",pos_hint= {'x': .1,'top': .2},size_hint = (.1,.1))
btn2 = Button(text = "click 2", pos_hint= {'x': .4,'top': .2},size_hint = (.1,.1))
btn3 = Button(text = "click 3", pos_hint= {'x': .66,'top': .2},size_hint = (.1,.1))
</code></pre>
<p>有关布局的详细信息,请参见布局部分下的<a href="http://kivy.org/docs/api-kivy.uix.html" rel="nofollow">here</a>。</p>
<p>你可能想结帐<a href="https://github.com/kivy/kivy/tree/master/examples/demo/kivycatalog" rel="nofollow">KivyCatalog</a>和<a href="https://github.com/kivy/kivy/tree/master/examples/demo/showcase" rel="nofollow">KivyShowcase</a>。</p>
<p><strong>编辑:1</strong></p>
<p>哎呀!我忘了加上这个部分。</p>
<blockquote>
<p>how can i plot these values inside the GUI?</p>
</blockquote>
<p>使用<code>Label</code></p>
<pre><code>self.lbl = Label(pos_hint= {'x': .73,'top': .6},size_hint = (.1,.1))
self.add_widget(self.lbl)
def clk1(self, obj):
....
self.lbl.text = str(dataset)
</code></pre>