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

View File

@ -382,7 +382,7 @@ def getTextColor(bgcolor,type='normal'):
def getColors(level=0,selected=False): def getColors(level=0,selected=False):
style = getConfigStyle() style = getConfigStyle()
i = level % 8 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]] bg_color = colors[style][ level_bg_colors[i]]
if selected: if selected:
k = level_bg_colors[i] k = level_bg_colors[i]

View File

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