代码拉取完成,页面将自动刷新
from tkinter import Toplevel
from selector import Selector
from settings import Settings, Settings_for_frame, Settings_for_root
# Toplevel, Frame, Setting, Selector
class Manager(Toplevel):
def __init__(self, master, writer, root, **kwargs):
super().__init__(master, **kwargs)
self.title("Settings")
self.master = master
self.writer = writer
self.root = root
self.record_of_names = {}
self.record_of_ids = {}
self.selector = Selector(self, bg=self["bg"])
self.fake_frame_background = "white"
self.fake_frame_place_info = {}
self.selector.place(relx=0, rely=0, relwidth=1, relheight=1)
def switch(self, widget, items, modifying=False):
settings = Settings(self, widget, items, modifying)
settings.place(relx=0, rely=0, relwidth=1, relheight=1)
self.wait_window(settings)
def switch_for_frame(self, board, tag, board_dims):
settings = Settings_for_frame(self, board, tag, board_dims)
settings.place(relx=0, rely=0, relwidth=1, relheight=1)
self.wait_window(settings)
def set_root(self, board):
str_dimensions = self.writer.app_geometry.replace("+", " ").replace("x", " ").split()
dimensions = [int(dim) for dim in str_dimensions]
settings = Settings_for_root(self, board, self.writer, self.writer.app_background,
dimensions, self.writer.app_transparency)
settings.place(relx=0, rely=0, relwidth=1, relheight=1)
self.wait_window(settings)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。