gui.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:qcri 作者: douville 项目源码 文件源码
def _create_local_pane(self, full_pane):
        local_pane = tk.LabelFrame(full_pane, text='Test Results')

        self.choose_results_button = tk.Button(
            local_pane,
            text='Results',
            width=15,
            command=self._load_run_results)
        self.choose_results_button.grid(
            row=0, column=0, sticky='ew', padx=10, pady=5)
        self.choose_results_entry = tk.Entry(
            local_pane, state='disabled', textvariable=self.runresultsvar)
        self.choose_results_entry.grid(
            row=0, column=1, sticky='nsew', padx=10, pady=5)
        self.choose_parser = ttk.Combobox(
            local_pane, show='', state='disabled')
        self.choose_parser.bind(
            '<<ComboboxSelected>>', self._on_parser_changed)
        self.choose_parser.grid(
            row=1, column=0, columnspan=2, sticky='nsew', padx=10, pady=7)
        self.runresultsview = TestResultsView(
            local_pane, on_selected=self._on_test_result_selected)
        self.runresultsview.grid(
            row=2, column=0, columnspan=2, sticky='nsew', padx=10, pady=5)
        self.runresultsview.rowconfigure(0, weight=1)
        self.runresultsview.columnconfigure(0, weight=1)

        local_pane.rowconfigure(2, weight=1)
        local_pane.columnconfigure(1, weight=1)
        local_pane.config(padx=10)
        return local_pane
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号