def init_widgets(self): self.init_play_resolution_widgets() self.init_font_name_widgets() self.init_font_size_widgets() self.init_line_count_widgets() self.init_layout_algorithm_widgets() self.init_tune_duration_widgets() self.init_drop_offset_widgets() self.init_bottom_margin_widgets() self.init_custom_offset_widgets() self.init_header_file_widgets() tku.add_border_space(self, 1, 1)
def init_widgets(self): self.init_topwin() self.init_menubar() self.init_rootpane() self.init_left_frame() self.init_right_frame() tku.add_border_space(self, 2, 2) # Windows 下让窗口居中 # 有个问题,窗口实例初始化后,出现在默认位置, # 如果马上修改窗口位置,窗口还是会在默认位置闪现一下, # 因此先隐藏起来,位置更新后再显示出来 if sys.platform.startswith('win'): self.topwin.withdraw() tku.move_to_screen_center(self.topwin) self.topwin.deiconify()
def init_widgets(self): self.init_custom_filter_widgets() self.init_top_filter_widgets() self.init_bottom_filter_widgets() self.init_guest_filter_widgets() tku.add_border_space(self, 1, 1)
def init_widgets(self): self.init_input_filename_widgets() self.init_output_filename_widgets() self.init_convert_widgets() tku.add_border_space(self, 1, 1)
def init_widgets(self): scrolledtext = ttk.ScrolledText(self, width=64) scrolledtext.pack(side=tk.TOP, fill=tk.BOTH, expand=True) self.scrolledtext = scrolledtext tku.add_border_space(self, 1, 1)