mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 19:30:11 +01:00
36 lines
757 B
Python
36 lines
757 B
Python
import logging
|
|
import math
|
|
import os
|
|
import sys
|
|
import time
|
|
import traceback
|
|
from Tkinter import *
|
|
|
|
import video_centre
|
|
import data_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(fill=BOTH, expand=YES)
|
|
|
|
wid = canvas.winfo_id()
|
|
os.system('xterm -into %d -geometry 40x20 -sb &' % wid)
|
|
|
|
data = data_centre.data()
|
|
|
|
try:
|
|
video_driver = video_centre.video_driver(canvas)
|
|
|
|
while True:
|
|
tk.update()
|
|
except Exception as e:
|
|
logger.error(str(e))
|