mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-18 06:10:12 +01:00
solving indent issues
This commit is contained in:
@@ -18,10 +18,11 @@ video_driver = video_centre.video_driver(canvas)
|
||||
|
||||
def key(event):
|
||||
print "pressed", repr(event.char)
|
||||
print "video position is :{}".format(video_driver.current_player.get_position())
|
||||
if(event.char in ['0','1','2'] ):
|
||||
print 'updating next bank'
|
||||
data_centre.update_next_bank_number(int(event.char))
|
||||
video_driver.next_player.load_content()
|
||||
video_driver.next_player.reload_content()
|
||||
|
||||
canvas.bind("<Key>", key)
|
||||
|
||||
|
||||
@@ -128,7 +128,12 @@ class video_player(object):
|
||||
'--win 0,0,400,400 --no-osd', '')
|
||||
|
||||
def reload_content(self):
|
||||
self.status = 'RELOADING'
|
||||
if self.omx.omx_loaded and self.is_loaded():
|
||||
self.exit()
|
||||
else:
|
||||
self.widget.after(50,self.reload_content)
|
||||
print("trying to reload")
|
||||
self.load_content()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user