mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 11:20:15 +01:00
Merge branch 'master' of https://github.com/langolierz/r_e_c_u_r
This commit is contained in:
@@ -25,11 +25,11 @@ label.pack()
|
||||
|
||||
def key(event):
|
||||
print "pressed", repr(event.char)
|
||||
if(event.char in ['0', '1', '2']):
|
||||
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))
|
||||
# This doesn't work, something to fix later
|
||||
# video_driver.next_player.load_content()
|
||||
video_driver.next_player.reload_content()
|
||||
|
||||
def update_current_time():
|
||||
label1Text.set(convert_int_to_string_for_display(video_driver.current_player.omx.get_position() / 1000))
|
||||
|
||||
@@ -1 +1 @@
|
||||
2
|
||||
1
|
||||
@@ -129,8 +129,13 @@ class video_player(object):
|
||||
'--win 0,0,400,400 --no-osd', '')
|
||||
|
||||
def reload_content(self):
|
||||
self.exit()
|
||||
self.load_content()
|
||||
self.status = 'RELOADING'
|
||||
if self.is_loaded():
|
||||
self.exit()
|
||||
else:
|
||||
self.widget.after(50,self.reload_content)
|
||||
print("trying to reload")
|
||||
self.load_content()
|
||||
|
||||
#layer = layer + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user