31 lines
778 B
Python
31 lines
778 B
Python
|
import os
|
||
|
import sys
|
||
|
from magictk import mtk, color_tmpl
|
||
|
from magictk import fontconfig
|
||
|
from ui.lang import l
|
||
|
from logger.logger import *
|
||
|
from lib import vars
|
||
|
from tkinter import Label as tkLabel
|
||
|
|
||
|
now_frame = None
|
||
|
master: mtk.Frame = None
|
||
|
|
||
|
|
||
|
def show_inject_page():
|
||
|
global now_frame, master
|
||
|
inject_page = mtk.Frame(master)
|
||
|
mtk.Frame(inject_page, w=10000).pack(fill="both", expand=True)
|
||
|
# TODO
|
||
|
mtk.Frame(inject_page, w=10000).pack(fill="both", expand=True)
|
||
|
inject_page.pack(fill="both", expand=True)
|
||
|
now_frame = inject_page
|
||
|
|
||
|
|
||
|
def inject_ui(root: mtk.Frame):
|
||
|
global master
|
||
|
inject_root_frame = mtk.Frame(root)
|
||
|
master = inject_root_frame
|
||
|
show_inject_page()
|
||
|
inject_root_frame.pack(fill="both", expand=True)
|
||
|
return inject_root_frame
|