This commit is contained in:
yumoqing 2020-07-14 22:10:04 +08:00
parent 26e582019c
commit 3dcc395d65
3 changed files with 2 additions and 6 deletions

View File

@ -79,11 +79,9 @@ class BoxViewer(BoxLayout):
if dir == 'up':
recs.reverse()
idx = -1
print('addPageWidgets(),begin')
for r in recs:
self.showObject(widgets, r, index=idx)
print('addPageWidgets(),widgets=',len(widgets))
self.dataloader.bufferObjects(widgets)
x = self.dataloader.getLocater()
self.locater(x)
@ -93,7 +91,7 @@ class BoxViewer(BoxLayout):
self.viewContainer.remove_widget(w)
def on_selected(self, o, v=None):
print('BoxViewer(): on_selected fired....')
pass
def locater(self, pos):
self.viewContainer.scroll_y = pos
@ -113,7 +111,6 @@ class BoxViewer(BoxLayout):
def showObject(self, holders, rec,index=0):
def doit(self,holders,idx,o,w):
print('showObject()...doit(),w=',w,o)
w.bind(on_press=self.select_record)
self.viewContainer.add_widget(w,index=idx)
holders.append(w)

View File

@ -382,7 +382,7 @@ def getTextColor(bgcolor,type='normal'):
def getColors(level=0,selected=False):
style = getConfigStyle()
i = level % 8
Logger.info('TEST : style=%s,level=%d', style, level)
# Logger.info('TEST : style=%s,level=%d', style, level)
bg_color = colors[style][ level_bg_colors[i]]
if selected:
k = level_bg_colors[i]

View File

@ -133,7 +133,6 @@ class BaseVPlayer(FloatLayout):
def on_fullscreen(self, instance, value):
window = self.get_parent_window()
print('window.size=',window.size,'Window size=',Window.size)
if not window:
Logger.warning('VideoPlayer: Cannot switch to fullscreen, '
'window not found.')