Esempio n. 1
0
    def __init__(self, parent, rootdir="/"):
        TreeView.__init__(self, parent)
        self.rootdir = rootdir

        imagelist = ImageList(16, 16)
        art = ArtProvider((16, 16))
        imagelist.Add(art.GetBitmap('folder', 'other'), 'folder')
        imagelist.Add(art.GetBitmap('file_open', 'other'), 'folder_open')
        self.SetImageList(imagelist)

        self.MakeRoot()
Esempio n. 2
0
    def __init__(self, parent, rootdir="/"):
        TreeView.__init__(self, parent)
        self.rootdir = rootdir

        imagelist = ImageList(16, 16)
        imagelist.Add(wx.ArtProvider_GetBitmap(wx.ART_FOLDER, wx.ART_OTHER, (16,16)), 'folder')
        imagelist.Add(wx.ArtProvider_GetBitmap(wx.ART_FILE_OPEN, wx.ART_OTHER, (16,16)), 'folder_open')
        self.SetImageList(imagelist)
        # XXX will need to be rewritten once Wax supports the ArtProvider

        self.MakeRoot()
Esempio n. 3
0
    def __init__(self):
        col_names = []
        col_names.append({'index': 0, 'name': 'Interface'})
        col_names.append({'index': 1, 'name': 'IP Address'})
        col_names.append({'index': 2, 'name': 'NetMask'})
        col_names.append({'index': 3, 'name': 'MAC Address'})
        col_names.append({'index': 4, 'name': 'Bytes Recv'})
        col_names.append({'index': 5, 'name': 'Bytes Sent'})
        col_names.append({'index': 6, 'name': 'Packets Recv'})
        col_names.append({'index': 7, 'name': 'Packets Sent'})

        self._iface_iter = []
        cols_type = [str, str, str, str, str, str, str, str]
        TreeView.__init__(self, cols_type, col_names)

        self._dev = NetDevice()
        self.show_all()
        gobject.timeout_add(1500, self._update_data)
Esempio n. 4
0
    def __init__(self):
        col_names = []
        col_names.append({'index': 0, 'name': _('PID')})
        col_names.append({'index': 1, 'name': _('Resource Base')})
        col_names.append({'index': 2, 'name': _('Pixmap Bytes')})
        col_names.append({'index': 3, 'name': _('Other')})
        col_names.append({'index': 4, 'name': _('Total')})
        col_names.append({'index': 5, 'name': _('Window Name')})

        self._window_iter = []

        cols_type = [str, str, str, str, str, str]
        TreeView.__init__(self, cols_type, col_names)

        self._proc = ProcInfo()
        self._xres = XRes()
        self._display = self._xres.open_display()
        self.show_all()
        gobject.timeout_add(1500, self._update_data)