mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 11:20:15 +01:00
33 lines
642 B
Python
33 lines
642 B
Python
import logging
|
|
import sys
|
|
import traceback
|
|
from Tkinter import *
|
|
import time
|
|
import os
|
|
|
|
import math
|
|
|
|
import data_centre
|
|
import video_centre
|
|
|
|
VIDEO_DISPLAY_TEXT = 'NOW [{}] {} NEXT [{}] {}'
|
|
VIDEO_DISPLAY_BANNER_LIST = ['[', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', ']']
|
|
VIDEO_DISPLAY_BANNER_TEXT = '{} {} {}'
|
|
|
|
logger = data_centre.setup_logging()
|
|
|
|
tk = Tk()
|
|
tk.withdraw()
|
|
canvas = Canvas(tk, width=500, height=400, bd=0, highlightthickness=0)
|
|
canvas.pack()
|
|
|
|
data = data_centre.data()
|
|
|
|
try:
|
|
video_driver = video_centre.video_driver(canvas)
|
|
|
|
while True:
|
|
tk.update()
|
|
except Exception as e:
|
|
logger.error(str(e))
|