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

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

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

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

        Kivy - 我的 ScrollView 不滾動

        Kivy - My ScrollView doesn#39;t scroll(Kivy - 我的 ScrollView 不滾動)
          <tbody id='pEnVy'></tbody>

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

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

                • 本文介紹了Kivy - 我的 ScrollView 不滾動的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在使用 Kivy 庫的 Python 應用程序中遇到問題.特別是我試圖在 TabbedPanelItem 中創建一個可滾動的元素列表,但我不知道為什么我的列表不滾動.

                  I'm having problems in my Python application with Kivy library. In particular I'm trying to create a scrollable list of elements in a TabbedPanelItem, but I don't know why my list doesn't scroll.

                  這是我的 kv 文件:

                  Here is my kv file:

                  #:import sm kivy.uix.screenmanager
                  ScreenManagement:
                       transition: sm.FadeTransition()
                       SecondScreen:
                  
                  <SecondScreen>:
                      tabba: tabba
                      name: 'second'
                      FloatLayout:
                          background_color: (255, 255, 255, 1.0)
                          BoxLayout:
                              orientation: 'vertical'
                              size_hint: 1, 0.10
                              pos_hint: {'top': 1.0}
                              canvas:
                                  Color:
                                      rgba: (0.98, 0.4, 0, 1.0)
                                  Rectangle:
                                      pos: self.pos
                                      size: self.size
                              Label:
                                  text: 'MyApp'
                                  font_size: 30
                                  size: self.texture_size
                  
                          BoxLayout:
                              orientation: 'vertical'
                              size_hint: 1, 0.90
                              Tabba:
                                  id: tabba
                  
                          BoxLayout:
                              orientation: 'vertical'
                              size_hint: 1, 0.10
                              pos_hint: {'bottom': 1.0}
                              Button:
                                  background_color: (80, 1, 0, 1.0)
                                  text: 'Do nop'
                                  font_size: 25
                  
                  
                  <Tabba>:
                      do_default_tab: False
                      background_color: (255, 255, 255, 1.0)
                  
                      TabbedPanelItem:
                          text: 'First_Tab'
                          Tabs:
                  
                      TabbedPanelItem:
                          text: 'Second_Tab'
                          Tabs:
                  
                      TabbedPanelItem:
                          text: 'Third_Tab'
                          Tabs:
                  
                  
                  <Tabs>:
                      grid: grid
                      ScrollView:
                          scroll_timeout: 250
                          scroll_distance: 20
                          do_scroll_y: True
                          do_scroll_x: False
                          GridLayout:
                              id: grid
                              cols: 1
                              spacing: 10
                              padding: 10
                              Label:
                                  text:'scroll'
                                  color: (0, 0, 0, 1.0)
                              Label:
                                  text:'scroll'
                                  color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                          Label:
                              text:'scroll'
                              color: (0, 0, 0, 1.0)
                  

                  這里是我的 .py 代碼:

                  And here my .py code:

                  __author__ = 'drakenden'
                  
                  __version__ = '0.1'
                  
                  import kivy
                  kivy.require('1.9.0') # replace with your current kivy version !
                  
                  from kivy.app import App
                  from kivy.lang import Builder
                  from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
                  from kivy.properties import StringProperty, ObjectProperty,NumericProperty
                  from kivy.uix.tabbedpanel import TabbedPanel
                  from kivy.uix.boxlayout import BoxLayout
                  from kivy.uix.button import Button
                  from kivy.utils import platform
                  from kivy.uix.gridlayout import GridLayout
                  from kivy.uix.label import Label
                  from kivy.uix.scrollview import ScrollView
                  
                  class Tabs(ScrollView):
                      def __init__(self, **kwargs):
                          super(Tabs, self).__init__(**kwargs)
                  
                  
                  class Tabba(TabbedPanel):
                      pass
                  
                  
                  class SecondScreen(Screen):
                      pass
                  
                  class ScreenManagement(ScreenManager):
                      pass
                  
                  presentation = Builder.load_file("layout2.kv")
                  
                  class MyApp(App):
                  
                      def build(self):
                          return presentation
                  
                  
                  MyApp().run()
                  

                  我在哪里/我做錯了什么?

                  Where/What am I doing wrong?

                  (也接受對 UI 改進的評論和建議)

                  (Comments and suggests for UI improvements are also accepted)

                  推薦答案

                  我自己也有一段時間沒用過kivy了,如果我記得很清楚的話:因為 ScrollView 中的布局應該比滾動視圖大例如 ScrollView 寬度:1000 像素,GridView 1100 像素.所以可以滾動100px

                  I Myself haven't used kivy for a while but if I remember exacly: Because layout within ScrollView should be BIGGER than scroll view ex ScrollView width: 1000px, GridView 1100px. So it will be possible to scroll it by 100px

                  這篇關于Kivy - 我的 ScrollView 不滾動的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Get user#39;s current location using GPS(使用 GPS 獲取用戶的當前位置)
                  IllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 拋出的 IllegalArgumentException)
                  How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新一次?)
                  How to detect Location Provider ? GPS or Network Provider(如何檢測位置提供者?GPS 或網絡提供商)
                  Get current location during app launch(在應用啟動期間獲取當前位置)
                  locationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)

                      <bdo id='brtHr'></bdo><ul id='brtHr'></ul>

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

                              <tbody id='brtHr'></tbody>
                          • <small id='brtHr'></small><noframes id='brtHr'>

                            <legend id='brtHr'><style id='brtHr'><dir id='brtHr'><q id='brtHr'></q></dir></style></legend>
                            <tfoot id='brtHr'></tfoot>
                          • 主站蜘蛛池模板: 亚洲免费视频网站 | 中文字幕一区二区三区在线观看 | 欧美日一区二区 | 精品国偷自产在线 | 暴草美女 | 国产精品影视在线观看 | 羞羞免费网站 | 国产精品日韩 | 欧美成人精品在线观看 | 亚洲天堂一区 | 伊人久久综合 | 欧美成视频 | 黑人粗黑大躁护士 | 午夜视频一区二区 | 91成人午夜性a一级毛片 | 精品国产一区二区三区观看不卡 | 国产精品国产精品国产专区不片 | 日韩视频一区在线观看 | 草比网站 | 精品一区二区观看 | 成人九色| 成人免费毛片片v | 在线小视频 | 国内自拍偷拍 | 九九久久精品 | 中文区中文字幕免费看 | 国产精品一区二区在线播放 | 国产精品高潮呻吟久久av黑人 | 亚洲国产成人精品久久久国产成人一区 | 在线免费观看视频黄 | 亚洲高清在线观看 | 天天干天天干 | 麻豆av在线 | 欧美久久精品一级c片 | 婷婷丁香在线视频 | 国产欧美一区二区三区另类精品 | www.日本精品| 久久久久亚洲精品 | 一区二区三区在线 | 日韩伦理一区二区三区 | 中文字幕亚洲区一区二 |