mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 11:20:15 +01:00
added terminal to tk window. Maybe.
This commit is contained in:
@@ -1,32 +1,35 @@
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import traceback
|
||||
from Tkinter import *
|
||||
import time
|
||||
import os
|
||||
|
||||
import math
|
||||
|
||||
import data_centre
|
||||
import video_centre
|
||||
import data_centre
|
||||
|
||||
VIDEO_DISPLAY_TEXT = 'NOW [{}] {} NEXT [{}] {}'
|
||||
VIDEO_DISPLAY_BANNER_LIST = ['[', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', ']']
|
||||
VIDEO_DISPLAY_BANNER_LIST = [
|
||||
'[', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', ']']
|
||||
VIDEO_DISPLAY_BANNER_TEXT = '{} {} {}'
|
||||
|
||||
logger = data_centre.setup_logging()
|
||||
|
||||
tk = Tk()
|
||||
tk.withdraw()
|
||||
# tk.withdraw()
|
||||
canvas = Canvas(tk, width=500, height=400, bd=0, highlightthickness=0)
|
||||
canvas.pack()
|
||||
|
||||
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()
|
||||
tk.update()
|
||||
except Exception as e:
|
||||
logger.error(str(e))
|
||||
|
||||
Reference in New Issue
Block a user