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

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

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

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

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

        當(dāng)我單擊行時,它顯示錯誤 IndexError: list index o

        when i click row then it shows error IndexError: list index out of range(當(dāng)我單擊行時,它顯示錯誤 IndexError: list index out of range)

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

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

                • 本文介紹了當(dāng)我單擊行時,它顯示錯誤 IndexError: list index out of range的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  import kivy
                  
                  kivy.require('1.9.0')  # replace with your current kivy version !
                  import sqlite3 as lite
                  from kivy.app import App
                  from kivy.uix.boxlayout import BoxLayout
                  from kivy.properties import BooleanProperty, ListProperty, StringProperty, ObjectProperty,NumericProperty
                  from kivy.lang import Builder
                  from kivy.uix.dropdown import DropDown
                  
                  from kivy.uix.recycleview.views import RecycleDataViewBehavior
                  from kivy.uix.button import Button
                  from kivy.uix.recyclegridlayout import RecycleGridLayout
                  from kivy.uix.behaviors import FocusBehavior
                  from kivy.uix.recycleview.layout import LayoutSelectionBehavior
                  from kivy.uix.popup import Popup
                  from kivy.core.window import Window
                  import sys
                  #Window.borderless = True
                  
                  #Window.clearcolor = (0, 0.517, 0.705, 1)
                  
                  Window.size = (900, 500)
                  #from easygui import msgbox
                  
                  #db =lite.connect(':memory:')
                  con = lite.connect('test.db')
                  con.text_factory = str
                  cur = con.cursor()
                  
                  
                  class EditStatePopup(Popup):
                      obj = ObjectProperty(None)
                      start_point = NumericProperty(0)
                      max_table_cols = NumericProperty(0)
                      new_data = ListProperty([])
                      stateId = StringProperty("")
                      stateName = StringProperty("")
                      stateCode = StringProperty("")
                  
                      def __init__(self, obj, **kwargs):
                          super(EditStatePopup, self).__init__(**kwargs)
                          self.obj = obj
                          self.start_point = obj.start_point
                          self.max_table_cols = obj.max_table_cols
                          self.stateId = obj.rv_data[obj.start_point]["text"]
                          self.stateName = obj.rv_data[obj.start_point + 1]["text"]
                          self.stateCode = obj.rv_data[obj.start_point + 2]["text"]
                  
                      def package_changes(self, stateId, stateName, stateCode):
                          print(stateName)
                          self.new_data.append(stateId)
                          self.new_data.append(stateName)
                          self.new_data.append(stateCode)
                  
                  
                  class SelectableRecycleGridLayout(FocusBehavior, LayoutSelectionBehavior,
                                                    RecycleGridLayout):
                      ''' Adds selection and focus behaviour to the view. '''
                  
                  
                  class SelectableButton(RecycleDataViewBehavior, Button):
                      ''' Add selection support to the Button '''
                      index = None
                      selected = BooleanProperty(False)
                      selectable = BooleanProperty(True)
                      rv_data = ObjectProperty(None)
                      start_point = NumericProperty(0)
                      max_table_cols = NumericProperty(3)
                      data_items = ListProperty([])
                  
                      def refresh_view_attrs(self, rv, index, data):
                          ''' Catch and handle the view changes '''
                          self.index = index
                          return super(SelectableButton, self).refresh_view_attrs(rv, index, data)
                  
                      def on_touch_down(self, touch):
                          ''' Add selection on touch down '''
                          if super(SelectableButton, self).on_touch_down(touch):
                              return True
                          if self.collide_point(*touch.pos) and self.selectable:
                              return self.parent.select_with_touch(self.index, touch)
                  
                      def apply_selection(self, rv, index, is_selected):
                          ''' Respond to the selection of items in the view. '''
                          self.selected = is_selected
                          self.rv_data = rv.data
                          #print("selection changed to {0}".format(rv.data[1]))
                  
                  
                      def on_press(self):
                          end_point = self.max_table_cols
                          rows = len(self.rv_data) # self.max_table_cols
                          #print(end_point) // 3
                          #print(rows) // 3
                          for row in range(rows):
                              cols = list(range(end_point))
                              #print(cols) // [0, 1, 2]
                              #print(self.index) //1
                              #print(self.max_table_cols)//3
                              if self.index in cols:
                                  break
                              self.start_point += self.max_table_cols
                              end_point += self.max_table_cols
                  
                          popup = EditStatePopup(self)
                          popup.open()
                  
                      def update_states(self, stateId, stateName, stateCode):
                  
                          cur.execute("UPDATE m_state SET state_name=?, state_code=? WHERE state_id=?",(stateName, stateCode, stateId))
                          con.commit()
                  
                  class RV(BoxLayout):
                      data_items = ListProperty([])
                  
                      def __init__(self, **kwargs):
                          super(RV, self).__init__(**kwargs)
                          self.get_states()
                  
                      def get_states(self):
                  
                          cur.execute("SELECT * FROM `m_state` order by state_id asc")
                          rows = cur.fetchall()
                  
                          #print(rows)
                          # create data_items
                          rows = [(1, 'Test', '01'), (2, 'test2', '02'), (2, 'test2', '03')]
                          for row in rows:
                              for col in row:
                                  self.data_items.append(col)
                                  #print(col)
                  
                  class CustDrop(DropDown):
                      def __init__(self, **kwargs):
                          super(CustDrop, self).__init__(**kwargs)
                          self.select('')
                  
                  class MainMenu(BoxLayout):
                      states = ObjectProperty(None)
                      dropdown = ObjectProperty(None)
                  
                      def display_states(self):
                          # rv = RV()
                          self.dropdown.dismiss()
                          self.states.add_widget(RV())
                          #return CustDrop()
                  
                  class FactApp(App):
                      title = "Test"
                  
                      def build(self):
                          self.root = Builder.load_file('m_ListState.kv')
                          return MainMenu()
                  
                  
                  
                  if __name__ == '__main__':
                      FactApp().run()
                  

                  m_ListState.kv

                  #:kivy 1.10.0
                  #:import CoreImage kivy.core.image.Image
                  #:import os os
                  
                  <EditStatePopup>:
                      title: "Update State"
                      size_hint: None, None
                      size: 300, 300
                      auto_dismiss: False
                  
                      BoxLayout:
                          orientation: "vertical"
                          GridLayout:
                              cols: 2
                              Label:
                                  text: "Id"
                              Label:
                                  id: stateId
                                  text: root.stateId
                              Label:
                                  text: "Name"
                              TextInput:
                                  id: stateName
                                  text: root.stateName
                              Label:
                                  text: "Code"
                              TextInput:
                                  id: stateCode
                                  text: root.stateCode
                  
                              Button:
                                  size_hint: 1, 0.4
                                  text: "Cancel"
                                  on_release: root.dismiss()
                  
                              Button:
                                  size_hint: 1, 0.4
                                  text: "Ok"
                                  on_release:
                                      root.package_changes(stateId.text, stateName.text, stateCode.text)
                                      #root.obj.update_states(root.start_point, root.max_table_cols, root.new_data)
                                      root.obj.update_states(stateId.text, stateName.text, stateCode.text)
                                      root.dismiss()
                  
                  
                  
                  <SelectableButton>:
                      # Draw a background to indicate selection
                      canvas.before:
                          Color:
                              rgba: (.0, 0.9, .1, .3) if self.selected else (0, 0, 0, 1)
                          Rectangle:
                              pos: self.pos
                              size: self.size
                  
                  <RV>:
                      BoxLayout:
                          orientation: "vertical"
                  
                          GridLayout:
                              size_hint: 1, None
                              size_hint_y: None
                              height: 25
                              cols: 3
                  
                              Label:
                                  text: "Id"
                              Label:
                                  text: "Name"
                              Label:
                                  text: "Code"
                  
                          BoxLayout:
                              RecycleView:
                                  viewclass: 'SelectableButton'
                                  data: [{'text': str(x)} for x in root.data_items]
                                  SelectableRecycleGridLayout:
                                      cols: 3
                                      default_size: None, dp(26)
                                      default_size_hint: 1, None
                                      size_hint_y: None
                                      height: self.minimum_height
                                      orientation: 'vertical'
                                      multiselect: True
                                      touch_multiselect: True
                  
                  
                  
                  <DropdownButton@Button>:
                      border: (0, 16, 0, 16)
                      text_size: self.size
                      valign: "middle"
                      padding_x: 5
                      size_hint_y: None
                      height: '30dp'
                      background_color: 90 , 90, 90, 90
                      color: 0, 0.517, 0.705, 1
                  
                  
                  
                  <MenuButton@Button>:
                      text_size: self.size
                      valign: "middle"
                      padding_x: 5
                      size : (80,30)
                      size_hint : (None, None)
                      background_color: 90 , 90, 90, 90
                      background_normal: ''
                      color: 0, 0.517, 0.705, 1
                      border: (0, 10, 0, 0)
                  
                  
                  <MainMenu>:
                      states: states
                      dropdown: dropdown
                  
                      BoxLayout:
                          orientation: 'vertical'
                          #spacing : 10
                  
                          BoxLayout:
                              canvas.before:
                                  Rectangle:
                                      pos: self.pos
                                      size: self.size
                  
                              size_hint_y: 1
                  
                              MenuButton:
                                  id: btn
                                  text: 'View'
                                  size : (60,30)
                                  on_release: dropdown.open(self)
                  
                              CustDrop:
                                  id: dropdown
                                  auto_width: False
                                  width: 150
                  
                                  DropdownButton:
                                      text: 'State'
                                      size_hint_y: None
                                      height: '32dp'
                                      #on_release: dropdown3.open(self)
                                      on_release: root.display_states()
                  
                                  DropdownButton:
                                      text: 'City'
                                      size_hint_y: None
                                      height: '32dp'
                                      #on_release: dropdown3.open(self)
                                      on_release: root.display_city()
                  
                          BoxLayout:
                              canvas.before:
                                  Rectangle:
                                      pos: self.pos
                                      size: self.size
                  
                                  Color:
                                      rgb: (1,1,1)
                  
                              AsyncImage:
                                  source: "add.jpg"
                                  #on_release: os.system("python m_State.py")
                  
                              Label:
                                  size_hint_x: 22
                  
                          BoxLayout:
                              id: states
                              size_hint_y: 9
                  
                          Label:
                              size_hint_y: 9
                  

                  誰能幫忙解決一些問題??
                  1.當(dāng)我一次又一次單擊狀態(tài)(視圖子菜單)時,數(shù)據(jù)會重復(fù).如何避免它.當(dāng)我單擊狀態(tài)時,應(yīng)顯示狀態(tài)列表,當(dāng)我單擊城市時,應(yīng)顯示城市列表.display_city()我還沒有寫這個只是為了舉例.
                  2.當(dāng)我點(diǎn)擊取消兩次然后它顯示錯誤IndexError:列表索引超出范圍.
                  3.當(dāng)我更新狀態(tài)時,它會在數(shù)據(jù)庫中更新,但不會在屏幕上實時更改.如果我再次運(yùn)行,則會顯示更新的數(shù)據(jù).

                  Can anyone help for resolve some issue??
                  1. when i click on state (submenu of view) again and again then data repeats.How to avoid it.When i click on state then state list should be show and when i click on city then city list should be show.display_city() i have not written yet this for only example.
                  2. When i click on cancel two times then it shows error IndexError: list index out of range.
                  3.When i update state then it updated in database but does not change real time on screen.If i again run then shows updated data.

                  推薦答案

                  請參考問題,解決方案和示例來解決您的問題.

                  Please refer to the problems, solutions and example to solve your problems.

                  每次單擊查看時,都會動態(tài)添加小部件.如果您單擊兩次查看,列會重復(fù)兩次.

                  Each time you clicked View, widgets are dynamically added. If you clicked View twice, the columns are repeated twice.

                  您必須在每次動態(tài)添加小部件之前刪除它們.

                  You have to remove the widgets each time before adding them dynamically.

                  def display_states(self):
                      self.dropdown.dismiss()
                      self.remove_widgets()
                      self.rv = RV()
                      self.states.add_widget(self.rv)
                  
                  def remove_widgets(self):
                      for child in [child for child in self.states.children]:
                          self.states.remove_widget(child)
                  

                  索引錯誤

                  問題

                  每當(dāng)您單擊每一行數(shù)據(jù)時,它都會調(diào)用 on_press 方法.self.start_point 在類 SelectableButton 實例化時初始化.

                  IndexError

                  Problem

                  Whenever you clicked on each row of data, it invokes the on_press method. The self.start_point is initialized at the beginning when the class SelectableButton is instantiated.

                  在on_press方法中初始化self.start_point.

                  Initialize self.start_point in the on_press method.

                  def on_press(self):
                      self.start_point = 0
                      end_point = MAX_TABLE_COLS
                      rows = len(self.rv_data) // MAX_TABLE_COLS
                  
                      for row in range(rows):
                          if self.index in list(range(end_point)):
                              break
                          self.start_point += MAX_TABLE_COLS
                          end_point += MAX_TABLE_COLS
                  
                      popup = EditStatePopup(self)
                      popup.open()
                  

                  RecycleView 未更新

                  問題

                  在update_states方法中,缺少RecycleView的數(shù)據(jù)更新.

                  RecycleView Not Updated

                  Problem

                  In the method update_states, RecycleView's data update is missing.

                  添加以下內(nèi)容以更新 RecycleView 的數(shù)據(jù).

                  Add the following to update RecycleView's data.

                  def update_states(self, obj):
                      # update data_items
                      # obj.start_point + 1 --- skip State_ID
                      for index in range(obj.start_point + 1, obj.start_point + MAX_TABLE_COLS):
                          self.rv.data_items[index] = obj.col_data[index - obj.start_point]
                  
                      # update Database Table
                      cur.execute("UPDATE m_state SET State_Name=?, State_Code=? WHERE State_ID=?",
                                  (obj.col_data[1], obj.col_data[2], obj.col_data[0]))
                      con.commit()
                  

                  示例

                  m_ListState.py

                  import kivy
                  kivy.require('1.10.0')  # replace with your current kivy version !
                  
                  import sqlite3 as lite
                  from kivy.app import App
                  from kivy.uix.boxlayout import BoxLayout
                  from kivy.properties import BooleanProperty, ListProperty, ObjectProperty,NumericProperty
                  from kivy.lang import Builder
                  from kivy.uix.dropdown import DropDown
                  
                  from kivy.uix.recycleview.views import RecycleDataViewBehavior
                  from kivy.uix.button import Button
                  from kivy.uix.recyclegridlayout import RecycleGridLayout
                  from kivy.uix.behaviors import FocusBehavior
                  from kivy.uix.recycleview.layout import LayoutSelectionBehavior
                  from kivy.uix.popup import Popup
                  from kivy.core.window import Window
                  
                  import sys
                  #Window.borderless = True
                  
                  #Window.clearcolor = (0, 0.517, 0.705, 1)
                  
                  Window.size = (900, 500)
                  #from easygui import msgbox
                  
                  MAX_TABLE_COLS = 3
                  
                  path = "/home/iam/dev/SQLite/sampleDB/StateCodesNamesDB/"
                  
                  #db =lite.connect(':memory:')
                  # con = lite.connect('fact.db')
                  con = lite.connect(path + 'country.db')
                  con.text_factory = str
                  cur = con.cursor()
                  
                  
                  class EditStatePopup(Popup):
                      start_point = NumericProperty(0)
                      col_data = ListProperty(["?", "?", "?"])
                  
                      def __init__(self, obj, **kwargs):
                          super(EditStatePopup, self).__init__(**kwargs)
                          self.start_point = obj.start_point
                          self.col_data[0] = obj.rv_data[obj.start_point]["text"]
                          self.col_data[1] = obj.rv_data[obj.start_point + 1]["text"]
                          self.col_data[2] = obj.rv_data[obj.start_point + 2]["text"]
                  
                      def package_changes(self, stateName, stateCode):
                          self.col_data[1] = stateName
                          self.col_data[2] = stateCode
                  
                  
                  class SelectableRecycleGridLayout(FocusBehavior, LayoutSelectionBehavior,
                                                    RecycleGridLayout):
                      ''' Adds selection and focus behaviour to the view. '''
                  
                  
                  class SelectableButton(RecycleDataViewBehavior, Button):
                      ''' Add selection support to the Button '''
                      index = None
                      selected = BooleanProperty(False)
                      selectable = BooleanProperty(True)
                      rv_data = ObjectProperty(None)
                      start_point = NumericProperty(0)
                  
                      def refresh_view_attrs(self, rv, index, data):
                          ''' Catch and handle the view changes '''
                          self.index = index
                          return super(SelectableButton, self).refresh_view_attrs(rv, index, data)
                  
                      def on_touch_down(self, touch):
                          ''' Add selection on touch down '''
                          if super(SelectableButton, self).on_touch_down(touch):
                              return True
                          if self.collide_point(*touch.pos) and self.selectable:
                              return self.parent.select_with_touch(self.index, touch)
                  
                      def apply_selection(self, rv, index, is_selected):
                          ''' Respond to the selection of items in the view. '''
                          self.selected = is_selected
                          self.rv_data = rv.data
                  
                      def on_press(self):
                          self.start_point = 0
                          end_point = MAX_TABLE_COLS
                          rows = len(self.rv_data) // MAX_TABLE_COLS
                  
                          for row in range(rows):
                              if self.index in list(range(end_point)):
                                  break
                              self.start_point += MAX_TABLE_COLS
                              end_point += MAX_TABLE_COLS
                  
                          popup = EditStatePopup(self)
                          popup.open()
                  
                  
                  class RV(BoxLayout):
                      data_items = ListProperty([])
                  
                      def __init__(self, **kwargs):
                          super(RV, self).__init__(**kwargs)
                          self.get_states()
                  
                      def get_states(self):
                          cur.execute("SELECT * FROM m_state order by State_ID asc")
                          rows = cur.fetchall()
                  
                          # create data_items
                          for row in rows:
                              for col in row:
                                  self.data_items.append(col)
                  
                  
                  class CustDrop(DropDown):
                      def __init__(self, **kwargs):
                          super(CustDrop, self).__init__(**kwargs)
                          self.select('')
                  
                  
                  class MainMenu(BoxLayout):
                      rv = ObjectProperty(None)
                      states = ObjectProperty(None)
                      dropdown = ObjectProperty(None)
                  
                      def display_states(self):
                          self.dropdown.dismiss()
                          self.remove_widgets()
                          self.rv = RV()
                          self.states.add_widget(self.rv)
                  
                      def remove_widgets(self):
                          for child in [child for child in self.states.children]:
                              self.states.remove_widget(child)
                  
                      def update_states(self, obj):
                          # update data_items
                          # obj.start_point + 1 --- skip State_ID
                          for index in range(obj.start_point + 1, obj.start_point + MAX_TABLE_COLS):
                              self.rv.data_items[index] = obj.col_data[index - obj.start_point]
                  
                          # update Database Table
                          cur.execute("UPDATE m_state SET State_Name=?, State_Code=? WHERE State_ID=?",
                                      (obj.col_data[1], obj.col_data[2], obj.col_data[0]))
                          con.commit()
                  
                  
                  class FactApp(App):
                      title = "Test"
                  
                      def build(self):
                          self.root = Builder.load_file('m_ListState.kv')
                          return MainMenu()
                  
                  
                  if __name__ == '__main__':
                      FactApp().run()
                  

                  m_ListState.kv

                  #:kivy 1.10.0
                  #:import CoreImage kivy.core.image.Image
                  #:import os os
                  
                  <EditStatePopup>:
                      title: "Update State"
                      size_hint: None, None
                      size: 300, 300
                      auto_dismiss: False
                  
                      BoxLayout:
                          orientation: "vertical"
                          GridLayout:
                              cols: 2
                              Label:
                                  text: "Id"
                              Label:
                                  id: stateId
                                  text: root.col_data[0]
                              Label:
                                  text: "Name"
                              TextInput:
                                  id: stateName
                                  text: root.col_data[1]
                              Label:
                                  text: "Code"
                              TextInput:
                                  id: stateCode
                                  text: root.col_data[2]
                  
                              Button:
                                  size_hint: 1, 0.4
                                  text: "Cancel"
                                  on_release: root.dismiss()
                  
                              Button:
                                  size_hint: 1, 0.4
                                  text: "Ok"
                                  on_release:
                                      root.package_changes(stateName.text, stateCode.text)
                                      app.root.update_states(root)
                                      root.dismiss()
                  
                  
                  
                  <SelectableButton>:
                      # Draw a background to indicate selection
                      canvas.before:
                          Color:
                              rgba: (.0, 0.9, .1, .3) if self.selected else (0, 0, 0, 1)
                          Rectangle:
                              pos: self.pos
                              size: self.size
                  
                  <RV>:
                      BoxLayout:
                          orientation: "vertical"
                  
                          GridLayout:
                              size_hint: 1, None
                              size_hint_y: None
                              height: 25
                              cols: 3
                  
                              Label:
                                  text: "Id"
                              Label:
                                  text: "Name"
                              Label:
                                  text: "Code"
                  
                          BoxLayout:
                              RecycleView:
                                  viewclass: 'SelectableButton'
                                  data: [{'text': str(x)} for x in root.data_items]
                                  SelectableRecycleGridLayout:
                                      cols: 3
                                      default_size: None, dp(26)
                                      default_size_hint: 1, None
                                      size_hint_y: None
                                      height: self.minimum_height
                                      orientation: 'vertical'
                                      multiselect: True
                                      touch_multiselect: True
                  
                  
                  
                  <DropdownButton@Button>:
                      border: (0, 16, 0, 16)
                      text_size: self.size
                      valign: "middle"
                      padding_x: 5
                      size_hint_y: None
                      height: '30dp'
                      background_color: 90 , 90, 90, 90
                      color: 0, 0.517, 0.705, 1
                  
                  
                  
                  <MenuButton@Button>:
                      text_size: self.size
                      valign: "middle"
                      padding_x: 5
                      size : (80,30)
                      size_hint : (None, None)
                      background_color: 90 , 90, 90, 90
                      background_normal: ''
                      color: 0, 0.517, 0.705, 1
                      border: (0, 10, 0, 0)
                  
                  
                  <MainMenu>:
                      states: states
                      dropdown: dropdown
                  
                      BoxLayout:
                          orientation: 'vertical'
                          #spacing : 10
                  
                          BoxLayout:
                              canvas.before:
                                  Rectangle:
                                      pos: self.pos
                                      size: self.size
                  
                              size_hint_y: 1
                  
                              MenuButton:
                                  id: btn
                                  text: 'View'
                                  size : (60,30)
                                  on_release: dropdown.open(self)
                  
                              CustDrop:
                                  id: dropdown
                                  auto_width: False
                                  width: 150
                  
                                  DropdownButton:
                                      text: 'State'
                                      size_hint_y: None
                                      height: '32dp'
                                      #on_release: dropdown3.open(self)
                                      on_release: root.display_states()
                  
                                  DropdownButton:
                                      text: 'City'
                                      size_hint_y: None
                                      height: '32dp'
                                      #on_release: dropdown3.open(self)
                                      on_release: root.display_city()
                  
                          BoxLayout:
                              canvas.before:
                                  Rectangle:
                                      pos: self.pos
                                      size: self.size
                  
                                  Color:
                                      rgb: (1,1,1)
                  
                              AsyncImage:
                                  source: "clipboard.jpeg"    # "gst_image/add.jpg"
                                  #on_release: os.system("python m_State.py")
                  
                              Label:
                                  size_hint_x: 22
                  
                          BoxLayout:
                              id: states
                              size_hint_y: 9
                  
                          Label:
                              size_hint_y: 9
                  

                  輸出

                  這篇關(guān)于當(dāng)我單擊行時,它顯示錯誤 IndexError: list index out of range的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)

                    <tbody id='oxDap'></tbody>

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

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

                          1. 主站蜘蛛池模板: 欧美精品在线免费观看 | 久久中文字幕视频 | 国产精品一区二区三区久久 | 雨宫琴音一区二区在线 | 国产日韩欧美在线 | 欧美在线日韩 | 日韩电影中文字幕 | 国产在线观看 | 韩国理论电影在线 | 亚洲综合在线播放 | 久久亚洲经典 | 伊人网伊人网 | 久久综合一区 | 91在线视频在线观看 | 在线视频成人 | 国产成人一区二区 | 国产欧美视频一区二区三区 | 一区二区三区视频 | 成人在线一区二区三区 | 91成人在线视频 | 久久精品一区 | 国产98色在线 | 日韩 | 精品成人在线视频 | 久久99精品视频 | 91精品中文字幕一区二区三区 | 精品永久 | 热re99久久精品国99热观看 | 午夜精品久久久久久久久久久久 | 久久机热| 精品日韩在线 | 日韩在线 | 久久久高清 | 欧美精产国品一二三区 | 精品欧美一区二区久久久伦 | 成人一区二区电影 | 日韩在线视频免费观看 | 五月综合激情在线 | 亚洲精品久久嫩草网站秘色 | 美女黄视频网站 | 99视频在线 | 亚洲国产成人精品久久 |