Пример #1
0
 def __init__(self, gfile, icon_size):
     '''
     Initialize DirItem class.
     '''
     # Init.
     gobject.GObject.__init__(self)
     self.gfile = gfile
     self.name = get_gfile_name(self.gfile)
     self.directory_path = gfile.get_path()
     self.icon_size = icon_size
     self.pixbuf = get_file_icon_pixbuf(self.directory_path, self.icon_size)
     self.is_button_press = False;
Пример #2
0
 def __init__(self, gfile, icon_size):
     '''
     Initialize DirItem class.
     '''
     # Init.
     gobject.GObject.__init__(self)
     self.gfile = gfile
     self.name = get_gfile_name(self.gfile)
     self.directory_path = gfile.get_path()
     self.icon_size = icon_size
     self.pixbuf = get_file_icon_pixbuf(self.directory_path, self.icon_size)
     self.is_button_press = False
Пример #3
0
 def __init__(self, gfile, column_index=0):
     '''
     Initialize FileItem class.
     '''
     TreeItem.__init__(self)
     self.gfile = gfile
     self.type = get_gfile_type(self.gfile)
     self.name = get_gfile_name(self.gfile)
     self.modification_time = get_gfile_modification_time(self.gfile)
     self.content_type = get_gfile_content_type(self.gfile)
     self.size = get_gfile_size(self.gfile)
     self.size_name = format_file_size(self.size)
     self.file_path = gfile.get_path()
     self.pixbuf = get_file_icon_pixbuf(self.file_path, ICON_SIZE)
     self.column_index = column_index
     self.name_width = get_name_width(self.column_index, self.name)
     self.modification_time_width = get_modification_time_width(self.modification_time)
     self.content_type_width = get_type_width(self.content_type)
     self.size_width = get_size_width(self.size_name)
Пример #4
0
 def __init__(self, gfile, column_index=0):
     '''
     Initialize FileItem class.
     '''
     TreeItem.__init__(self)
     self.gfile = gfile
     self.type = get_gfile_type(self.gfile)
     self.name = get_gfile_name(self.gfile)
     self.modification_time = get_gfile_modification_time(self.gfile)
     self.content_type = get_gfile_content_type(self.gfile)
     self.size = get_gfile_size(self.gfile)
     self.size_name = format_file_size(self.size)
     self.file_path = gfile.get_path()
     self.pixbuf = None
     self.column_index = column_index
     self.name_width = get_name_width(self.column_index, self.name)
     self.modification_time_width = get_modification_time_width(self.modification_time)
     self.content_type_width = get_type_width(self.content_type)
     self.size_width = get_size_width(self.size_name)
Пример #5
0
 def __init__(self, gfile, column_index=0):
     '''
     Initialize DirItem class.
     '''
     # Init.
     TreeItem.__init__(self)
     self.gfile = gfile
     self.type = get_gfile_type(self.gfile)
     self.name = get_gfile_name(self.gfile)
     self.modification_time = get_gfile_modification_time(self.gfile)
     self.content_type = get_gfile_content_type(self.gfile)
     self.size = get_gfile_size(self.gfile)
     self.size_name = "%s 项" % (self.size)
     self.directory_path = gfile.get_path()
     self.pixbuf = get_file_icon_pixbuf(self.directory_path, ICON_SIZE)
     self.column_index = column_index
     self.is_expand = False
     self.load_status = self.LOADING_INIT
     self.name_width = get_name_width(self.column_index, self.name)
     self.modification_time_width = get_modification_time_width(self.modification_time)
     self.content_type_width = get_type_width(self.content_type)
     self.size_width = get_size_width(self.size_name)
Пример #6
0
 def __init__(self, gfile, column_index=0):
     '''
     Initialize DirItem class.
     '''
     # Init.
     TreeItem.__init__(self)
     self.gfile = gfile
     self.type = get_gfile_type(self.gfile)
     self.name = get_gfile_name(self.gfile)
     self.modification_time = get_gfile_modification_time(self.gfile)
     self.content_type = get_gfile_content_type(self.gfile)
     self.size = get_gfile_size(self.gfile)
     self.size_name = "%s 项" % (self.size)
     self.directory_path = gfile.get_path()
     self.pixbuf = None
     self.column_index = column_index
     self.is_expand = False
     self.load_status = self.LOADING_INIT
     self.name_width = get_name_width(self.column_index, self.name)
     self.modification_time_width = get_modification_time_width(self.modification_time)
     self.content_type_width = get_type_width(self.content_type)
     self.size_width = get_size_width(self.size_name)