久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='UV4hR'></tfoot>
  • <i id='UV4hR'><tr id='UV4hR'><dt id='UV4hR'><q id='UV4hR'><span id='UV4hR'><b id='UV4hR'><form id='UV4hR'><ins id='UV4hR'></ins><ul id='UV4hR'></ul><sub id='UV4hR'></sub></form><legend id='UV4hR'></legend><bdo id='UV4hR'><pre id='UV4hR'><center id='UV4hR'></center></pre></bdo></b><th id='UV4hR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UV4hR'><tfoot id='UV4hR'></tfoot><dl id='UV4hR'><fieldset id='UV4hR'></fieldset></dl></div>

      <small id='UV4hR'></small><noframes id='UV4hR'>

        <legend id='UV4hR'><style id='UV4hR'><dir id='UV4hR'><q id='UV4hR'></q></dir></style></legend>
          <bdo id='UV4hR'></bdo><ul id='UV4hR'></ul>

        Kivy - 基礎(chǔ)應(yīng)用程序有奇怪的對齊方式

        Kivy - base application has strange alignment(Kivy - 基礎(chǔ)應(yīng)用程序有奇怪的對齊方式)

            <i id='qCeCj'><tr id='qCeCj'><dt id='qCeCj'><q id='qCeCj'><span id='qCeCj'><b id='qCeCj'><form id='qCeCj'><ins id='qCeCj'></ins><ul id='qCeCj'></ul><sub id='qCeCj'></sub></form><legend id='qCeCj'></legend><bdo id='qCeCj'><pre id='qCeCj'><center id='qCeCj'></center></pre></bdo></b><th id='qCeCj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qCeCj'><tfoot id='qCeCj'></tfoot><dl id='qCeCj'><fieldset id='qCeCj'></fieldset></dl></div>
              <tbody id='qCeCj'></tbody>

          1. <small id='qCeCj'></small><noframes id='qCeCj'>

            <legend id='qCeCj'><style id='qCeCj'><dir id='qCeCj'><q id='qCeCj'></q></dir></style></legend>

              <tfoot id='qCeCj'></tfoot>
                  <bdo id='qCeCj'></bdo><ul id='qCeCj'></ul>
                  本文介紹了Kivy - 基礎(chǔ)應(yīng)用程序有奇怪的對齊方式的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在嘗試構(gòu)建一個基本的 Kivy 應(yīng)用程序.添加基本??元素并運行應(yīng)用程序后,所有元素都擠在左下角.它在 android 和 Linux 上顯示如下.

                  I am trying to build a basic Kivy app. After adding the basic elements, and running the app, all of the elements are crammed into the bottom left corner. It shows up like this on android and Linux.

                  Main.py:

                  from kivy.app import App
                  from kivy.uix.widget import Widget
                  
                  class SublimeLauncher(Widget):
                      pass
                  
                  class SublimeLauncherApp(App):
                      def build(self):
                          return SublimeLauncher()
                  
                  if __name__ == "__main__":
                      SublimeLauncherApp().run()
                  

                  sublimelauncher.kv:

                  sublimelauncher.kv:

                  #:kivy 1.2.0
                  <SublimeLauncher>:
                      FloatLayout:
                          BoxLayout:
                              orientation: 'vertical'
                              spacing: 10
                              Label:
                                  text: "Enter the path to the folder to open.
                  Press OK if you would like to open without a directory"
                              TextInput:
                                  id: folderpath
                              Button:
                                  text: 'OK'
                  

                  我第一次嘗試只使用 BoxLayout,但在某處讀取的根小部件始終與應(yīng)用程序一樣大.如何聲明應(yīng)用程序的大小?還是布局?你會怎么做一些像對話框這樣的事情?

                  I first tried it with just the BoxLayout, but read somewhere the root widget is always as big as the app. How do I declare the size of the app? Or the layout? How would you go about doing something like a dialog box?

                  也許我遺漏了一些非常基本的東西,但我似乎無法弄清楚.

                  Maybe I am missing something very basic, but I can't seem to figure it out.

                  這就是我所看到的......

                  here is what I am seeing..

                  推薦答案

                  由于你的根小部件不是布局(你讓 SublimeLauncher 繼承 Widget),它不會't 設(shè)置其子級大小/位置.所以你的 FloatLayout 有默認(rèn)值,因為你也沒有手動覆蓋它們.

                  As your root widget is not a layout (you made SublimeLauncher inherit Widget), it doesn't set its children size/positions. So your FloatLayout have the defaults, since you don't override them manually either.

                  pos: 0, 0
                  size: 100, 100
                  

                  這些默認(rèn)值當(dāng)然會限制孩子,因為 FloatLayout 會根據(jù)他們的 size_hint 屬性來限制他們的大小.

                  And these defaults of course constraints the child, since FloatLayout by constraint their size based on their size_hint property.

                  正如 Nykakin 指出的那樣,您想給他們更多的空間.

                  You want to give them more space, as Nykakin pointed out.

                  此外,由于您的文本比標(biāo)簽大(您也沒有設(shè)置 halign 和 text_size),因此它的紋理以標(biāo)簽的中心為中心,因此它的某些部分超出了屏幕.你想看看 kivy/examples/widgets/textalign.py

                  Also, as your text is bigger than the Label (you didn't set halign and text_size either) its texture is centered on the center of the Label, and so some part of it is out of screen. You want to have a look at kivy/examples/widgets/textalign.py

                  這篇關(guān)于Kivy - 基礎(chǔ)應(yīng)用程序有奇怪的對齊方式的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機(jī)器人?)
                  Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                  <tfoot id='FYwg1'></tfoot>
                    <tbody id='FYwg1'></tbody>

                        <legend id='FYwg1'><style id='FYwg1'><dir id='FYwg1'><q id='FYwg1'></q></dir></style></legend>

                          <small id='FYwg1'></small><noframes id='FYwg1'>

                          • <bdo id='FYwg1'></bdo><ul id='FYwg1'></ul>
                            <i id='FYwg1'><tr id='FYwg1'><dt id='FYwg1'><q id='FYwg1'><span id='FYwg1'><b id='FYwg1'><form id='FYwg1'><ins id='FYwg1'></ins><ul id='FYwg1'></ul><sub id='FYwg1'></sub></form><legend id='FYwg1'></legend><bdo id='FYwg1'><pre id='FYwg1'><center id='FYwg1'></center></pre></bdo></b><th id='FYwg1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='FYwg1'><tfoot id='FYwg1'></tfoot><dl id='FYwg1'><fieldset id='FYwg1'></fieldset></dl></div>
                            主站蜘蛛池模板: www.天天干.com| 国产一级电影网 | 992人人草 | 欧美福利专区 | 超碰8| 欧美九九九 | 国产伦精品一区二区三区照片91 | 日本精a在线观看 | 亚洲国产精品一区二区www | 国产精品视频观看 | 日韩欧美精品一区 | 99伊人| 二区中文字幕 | 欧美性网 | 国产精品美女一区二区 | 伊人激情综合网 | 精品国产一区二区三区性色av | 国产精品久久久久久婷婷天堂 | 亚洲成年影院 | 久久久久久久91 | 麻豆一区| 日本免费黄色 | 亚洲精品日韩综合观看成人91 | 欧美日韩精品久久久免费观看 | 毛片在线免费 | 国产日韩亚洲欧美 | 亚洲三级在线 | 国产精品久久久爽爽爽麻豆色哟哟 | 国产成人免费视频网站高清观看视频 | 亚洲二区精品 | 狠狠爱一区二区三区 | 在线电影日韩 | 精品一区二区三区四区五区 | 亚洲vs天堂 | 午夜精品视频在线观看 | 懂色tv| 久久噜噜噜精品国产亚洲综合 | 精品二区 | 99爱视频 | 男女羞羞视频网站 | 亚洲视频一区在线观看 |