def __init__(self, parent, widgets, edit_buttons = None): AnyList.__init__(self, parent, widgets, row_control = WidgetRow, edit_buttons = edit_buttons, draggable_items = False) Bind = self.Bind Bind(wx.EVT_LISTBOX_DCLICK, self.on_doubleclick) Bind(wx.EVT_LIST_ITEM_FOCUSED,self.OnHoveredChanged)
def __init__(self, parent, status_messages, edit_buttons = None): AnyList.__init__(self, parent, status_messages, row_control = StatusRow, edit_buttons = edit_buttons) self.show_selected = False Bind = self.Bind Bind(wx.EVT_LISTBOX_DCLICK, self.on_doubleclick) Bind(wx.EVT_LIST_ITEM_FOCUSED,self.OnHoveredChanged)
def __init__(self, parent, data): self.UpdateSkin(first = True) self.filetype_icons = {} AnyList.__init__(self, parent, data, row_control = FileTransferRow, draggable_items = False) self.Bind(wx.EVT_PAINT, self.on_paint) self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
def __init__(self, parent, widgets, edit_buttons=None): AnyList.__init__(self, parent, widgets, row_control=WidgetRow, edit_buttons=edit_buttons, draggable_items=False) Bind = self.Bind Bind(wx.EVT_LISTBOX_DCLICK, self.on_doubleclick) Bind(wx.EVT_LIST_ITEM_FOCUSED, self.OnHoveredChanged)
def __init__(self, parent, data): self.UpdateSkin(first=True) self.filetype_icons = {} AnyList.__init__(self, parent, data, row_control=FileTransferRow, draggable_items=False) self.Bind(wx.EVT_PAINT, self.on_paint) self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
def __init__(self, parent, statussource, exceptions, edit_buttons = None): self.statussource = statussource self.accounts = get_account_list() self.exceptions = exceptions AnyList.__init__(self, parent, data = self.accounts, row_control = StatusExceptionRow, edit_buttons = edit_buttons, draggable_items = False) self.show_selected = False Bind = self.Bind Bind(wx.EVT_LISTBOX_DCLICK, self.on_doubleclick) Bind(wx.EVT_LIST_ITEM_FOCUSED, self.on_hover_changed) Bind(wx.EVT_CHECKBOX, self.on_check) self.SetMinSize(self.size)