Python tkinter.ttk 模块,PanedWindow() 实例源码

我们从Python开源项目中,提取了以下7个代码示例,用于说明如何使用tkinter.ttk.PanedWindow()

项目:Craft-Clash    作者:Derpyface-Development-Co    | 项目源码 | 文件源码
def create(self, **kwargs):
        return ttk.PanedWindow(self.root, **kwargs)
项目:Craft-Clash    作者:Derpyface-Development-Co    | 项目源码 | 文件源码
def create(self, **kwargs):
        return ttk.PanedWindow(self.root, **kwargs)
项目:ouroboros    作者:pybee    | 项目源码 | 文件源码
def create(self, **kwargs):
        return ttk.PanedWindow(self.root, **kwargs)
项目:quill    作者:DeflatedPickle    | 项目源码 | 文件源码
def insert_tk_panedwindow(self, index: int or str="end", *args, **kwargs):
        """Insert a tk.PanedWindow into the game."""
        widget = tk.PanedWindow(self.text, **kwargs)
        self.text.window_create(index, window=widget)

        return widget
项目:quill    作者:DeflatedPickle    | 项目源码 | 文件源码
def insert_ttk_panedwindow(self, orient: tk.HORIZONTAL or tk.VERTICAL or str=None, width: int=None, height: int=None, index: int or str="end", *args, **kwargs):
        """Insert a ttk.PanedWindow into the game."""
        widget = ttk.PanedWindow(self.text, orient=orient, width=width, height=height, **kwargs)
        self.text.window_create(index, window=widget)

        return widget
项目:kbe_server    作者:xiaohaoppy    | 项目源码 | 文件源码
def create(self, **kwargs):
        return ttk.PanedWindow(self.root, **kwargs)
项目:Quiver    作者:DeflatedPickle    | 项目源码 | 文件源码
def __init__(self, parent, *args, **kwargs):
        tk.Toplevel.__init__(self, parent, *args, **kwargs)
        self.parent = parent
        self.title("Feather")
        self.geometry("800x400")
        self.minsize(width=300, height=200)
        self.maxsize(width=1000, height=800)
        # self.transient(parent)
        self.rowconfigure(1, weight=1)
        self.columnconfigure(0, weight=1)

        self.file = None

        self.menu = Menu(self)

        self.toolbar = Toolbar(self)
        self.toolbar.grid(row=0, column=0, sticky="we")

        self.statusbar = Statusbar(self)
        self.statusbar.grid(row=2, column=0, sticky="we")

        self.widget_paned_window = ttk.PanedWindow(self, orient="horizontal")
        self.widget_paned_window.grid(row=1, column=0, sticky="nesw")

        self.widget_frame_tree = ttk.Frame(self.widget_paned_window)
        self.widget_frame_tree.rowconfigure(0, weight=1)
        self.widget_frame_tree.columnconfigure(0, weight=1)
        self.widget_paned_window.add(self.widget_frame_tree, weight=1)

        self.widget_treeview = Tree(self.widget_frame_tree, self)
        self.widget_treeview.grid(row=0, column=0, sticky="nesw")
        self.widget_treeview.focus_set()

        self.scrollbar_horizontal = ttk.Scrollbar(self.widget_frame_tree, orient="horizontal",
                                                  command=self.widget_treeview.xview)
        self.scrollbar_horizontal.grid(row=1, column=0, sticky="we")

        self.scrollbar_vertical = ttk.Scrollbar(self.widget_frame_tree, orient="vertical",
                                                command=self.widget_treeview.yview)
        self.scrollbar_vertical.grid(row=0, column=1, sticky="ns")

        self.widget_treeview.configure(xscrollcommand=self.scrollbar_horizontal.set,
                                       yscrollcommand=self.scrollbar_vertical.set)