示例#1
0
 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)
示例#2
0
文件: status.py 项目: sgricci/digsby
    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)
示例#3
0
    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)
示例#4
0
 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)
示例#5
0
    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)
示例#6
0
文件: status.py 项目: sgricci/digsby
    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)