def __init__(self, items, max_height=None, max_width=None, ): ''' Initialize BreadMenu class. @param items: Item for TreeView. @param max_height: Maximum height of bread menu, by default is None. @param max_width: Maximum width of bread menu, by default is None. ''' Poplist.__init__(self, items=items, max_height=max_height, max_width=max_width, shadow_visible=False, shape_frame_function=self.shape_bread_menu_frame, expose_frame_function=self.expose_bread_menu_frame, align_size=2, ) self.set_skip_pager_hint(True) self.set_skip_taskbar_hint(True) self.treeview.draw_mask = self.draw_treeview_mask self.expose_window_frame = self.expose_bread_menu_frame
def __init__(self, items=[], min_width=80, max_width=None, fixed_width=None, min_height=100, max_height=None): ''' Initialize ComboList class. @param items: Initialize item list, default is empty list. @param min_width: The minimum width of combo list, default is 80 pixels. @param max_width: The maximum width of combo list, default is None to calculate maximum width with item content. @param fixed_width: The fixed width of combo list, default is None, set this option to fixed width and combo list won't care the width of items. @param min_height: The minimum height of combo list, default is 100 pixels. @param max_height: The maximum height of combo list, default is None. ''' Poplist.__init__(self, items=items, min_width=min_width, max_width=max_width, fixed_width=fixed_width, min_height=min_height , max_height=max_height, shadow_visible=False, shape_frame_function=self.shape_combo_list_frame, expose_frame_function=self.expose_combo_list_frame, align_size=2, window_type=gtk.WINDOW_POPUP, ) self.treeview.draw_mask = self.draw_treeview_mask self.treeview.set_expand_column(0) self.expose_window_frame = self.expose_combo_list_frame
def __init__( self, items, max_height=None, max_width=None, ): ''' Initialize BreadMenu class. @param items: Item for TreeView. @param max_height: Maximum height of bread menu, by default is None. @param max_width: Maximum width of bread menu, by default is None. ''' Poplist.__init__( self, items=items, max_height=max_height, max_width=max_width, shadow_visible=False, shape_frame_function=self.shape_bread_menu_frame, expose_frame_function=self.expose_bread_menu_frame, align_size=2, ) self.set_skip_pager_hint(True) self.set_skip_taskbar_hint(True) self.treeview.draw_mask = self.draw_treeview_mask self.expose_window_frame = self.expose_bread_menu_frame
def __init__(self, items=[], min_width=80, max_width=None, fixed_width=None, min_height=100, max_height=None): ''' Initialize ComboList class. @param items: Initialize item list, default is empty list. @param min_width: The minimum width of combo list, default is 80 pixels. @param max_width: The maximum width of combo list, default is None to calculate maximum width with item content. @param fixed_width: The fixed width of combo list, default is None, set this option to fixed width and combo list won't care the width of items. @param min_height: The minimum height of combo list, default is 100 pixels. @param max_height: The maximum height of combo list, default is None. ''' Poplist.__init__( self, items=items, min_width=min_width, max_width=max_width, fixed_width=fixed_width, min_height=min_height, max_height=max_height, shadow_visible=False, shape_frame_function=self.shape_combo_list_frame, expose_frame_function=self.expose_combo_list_frame, align_size=2, window_type=gtk.WINDOW_POPUP, ) self.treeview.draw_mask = self.draw_treeview_mask self.treeview.set_expand_column(0) self.expose_window_frame = self.expose_combo_list_frame