回答編集履歴

2

コードの修正

2018/02/03 04:19

投稿

gottadiveintopy
gottadiveintopy

スコア736

test CHANGED
@@ -76,15 +76,11 @@
76
76
 
77
77
  def delete(self):
78
78
 
79
- print('DELETE')
79
+ # print('DELETE')
80
-
80
+
81
- self.rv.data = [
81
+ self.rv.data = list(filter(
82
-
83
- item for item in filter(
82
+
84
-
85
- lambda item: not item['is_checked'],
83
+ lambda item: not item['is_checked'], self.rv.data))
86
-
87
- self.rv.data)]
88
84
 
89
85
 
90
86
 

1

コードの修正

2018/02/03 04:19

投稿

gottadiveintopy
gottadiveintopy

スコア736

test CHANGED
@@ -106,9 +106,7 @@
106
106
 
107
107
  rv = SM.get_screen('manager').rv
108
108
 
109
- data = rv.data
109
+ for item in rv.data:
110
-
111
- for index, item in enumerate(data):
112
110
 
113
111
  if item['id'] == self.id:
114
112