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

  • <legend id='v8jI9'><style id='v8jI9'><dir id='v8jI9'><q id='v8jI9'></q></dir></style></legend>

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

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

        Python kivy - 如何減少 TextInput 的高度

        Python kivy - how to reduce height of TextInput(Python kivy - 如何減少 TextInput 的高度)

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

        1. <legend id='V90lJ'><style id='V90lJ'><dir id='V90lJ'><q id='V90lJ'></q></dir></style></legend>
          • <tfoot id='V90lJ'></tfoot>
              • <bdo id='V90lJ'></bdo><ul id='V90lJ'></ul>
                  <tbody id='V90lJ'></tbody>
              • <small id='V90lJ'></small><noframes id='V90lJ'>

                  本文介紹了Python kivy - 如何減少 TextInput 的高度的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 kivy 為應用程序制作一個非常簡單的 gui.沒有什么復雜的,非常簡單的布局.

                  I am using kivy to make a very simple gui for an application. Nothing complex, very simple layout.

                  盡管如此,我在使用 TextInputs 時遇到了困難……它們總是以全高顯示,我無法讓它們調整為合理"的文本高度,例如高度.

                  Nevertheless I am having a hard time with TextInputs...They always display with full height and I can't manage to make them adjust to a "reasonable" text-height like height.

                  我使用 kv 文件樣式,因為我發現它更簡潔,更容易將其集成到現有應用程序中...我想盡可能減少應用程序的 gui-python 代碼.

                  I am using the kv files style since I find it cleaner and easier to integrate it in an already existing app...I would like to reduce as much as possible the gui-python code of the app.

                  這是我為 TextInput 得到的(無用添加 gui 的其他部分).

                  Here is what I got for the TextInput (useless to add other parts of the gui).

                  Python 代碼

                  # textInput.py
                  from kivy import require
                  from kivy.app import App
                  from kivy.uix.boxlayout import BoxLayout
                  from kivy.lang.builder import Builder
                  
                  Builder.load_file('path/to/kv/file/textInput.kv')
                  
                  require('1.10.0')
                  
                  class MainScreen(BoxLayout):
                      pass
                  
                  class Test(App):
                      def build(self):
                          self.title = 'Testing textInput'
                          return MainScreen()
                  
                  if __name__ == '__main__':
                      Test().run()
                  

                  KV 代碼

                  # textInput.kv
                  <MainScreen>
                      orientation: 'vertical'
                  
                      # Third section title
                      Label:
                          size_hint: (1, .1)
                          text: 'Setup Connection'
                          font_size: 25
                  
                      # Third section Box
                      BoxLayout:
                          size_hint: (1, .2)
                          padding: [100, 0, 100, 0]
                          BoxLayout:
                              Label:
                                  size_hint: (.2, 1)
                                  text: 'Host'
                              TextInput:
                                  height: self.minimum_height
                                  multiline: False
                                  text: 'localhost'
                              Label:
                                  size_hint: (.2, 1)
                                  text: ''
                              Label:
                                  size_hint: (.2, 1)
                                  text: 'Port'
                              TextInput:
                                  size_hint: (.2, 1)
                                  multiline: False
                                  text: '502'
                  

                  我嘗試了很多東西,在這里的代碼中我嘗試同時使用 size_hint 和 height...但沒有一個有效..

                  I have tried lot of stuff, in the code here I am trying both to use size_hint and height...but none works..

                  推薦答案

                  要設置一個小部件的高度,首先將 size_hint_y 設置為 None 然后你可以設置height 到任何你想要的.

                  To set a height of a widget, first set the size_hint_y to None and then you can set the height to whatever you want.

                  TextInput:
                      size_hint: (.2, None)
                      height: 30
                      multiline: False
                      text: '502'
                  

                  這篇關于Python kivy - 如何減少 TextInput 的高度的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

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

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

                            <tbody id='CxU64'></tbody>

                        • <small id='CxU64'></small><noframes id='CxU64'>

                            主站蜘蛛池模板: 在线看免费的a | 国产欧美一区二区久久性色99 | 性视频一区 | www.se91 | www.五月天婷婷 | 久久久精品一区 | 台湾佬成人网 | 久久香蕉精品视频 | 二区在线观看 | 精品福利在线 | 日本福利视频 | 一区二区在线 | 九九久久在线看 | 91精品国产91综合久久蜜臀 | 中文字幕在线一区 | 天堂久久一区 | 青青草原综合久久大伊人精品 | 久久久www成人免费精品 | 欧美日韩国产在线观看 | 精久久| 欧美日韩手机在线观看 | 日韩视频国产 | 一本色道精品久久一区二区三区 | 天堂中文在线播放 | 国产精品中文字幕一区二区三区 | 欧美vide| 黑人成人网 | 久久国产精99精产国高潮 | 国产欧美日韩久久久 | 久久com | 夜夜夜操| 亚洲视频一区二区三区 | 狠狠狠色丁香婷婷综合久久五月 | 午夜精品网站 | 国产免费播放视频 | 成人免费视频网站在线观看 | 99在线精品视频 | 日韩最新网址 | 国产精品自拍啪啪 | 一区二区国产精品 | 欧美国产日韩精品 |