mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
* Specified width of integer for TreeView column, so that size of large
files can be fitted into it.
This commit is contained in:
@@ -37,7 +37,7 @@ class MainModel(ModelMT):
|
|||||||
db_cursor = None
|
db_cursor = None
|
||||||
abort = False
|
abort = False
|
||||||
discsTree = gtk.TreeStore(gobject.TYPE_INT, gobject.TYPE_STRING,str)
|
discsTree = gtk.TreeStore(gobject.TYPE_INT, gobject.TYPE_STRING,str)
|
||||||
filesList = gtk.ListStore(gobject.TYPE_INT, gobject.TYPE_STRING, gobject.TYPE_INT, gobject.TYPE_STRING, gobject.TYPE_INT, gobject.TYPE_STRING,str)
|
filesList = gtk.ListStore(gobject.TYPE_INT, gobject.TYPE_STRING, gobject.TYPE_UINT64, gobject.TYPE_STRING, gobject.TYPE_INT, gobject.TYPE_STRING,str)
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
ModelMT.__init__(self)
|
ModelMT.__init__(self)
|
||||||
@@ -51,15 +51,13 @@ class MainModel(ModelMT):
|
|||||||
os.unlink(self.internal_filename)
|
os.unlink(self.internal_filename)
|
||||||
except:
|
except:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
print "m_db.py: 31"
|
print "cleanup()", self.internal_filename
|
||||||
print self.internal_filename
|
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
os.unlink(self.internal_filename + '-journal')
|
os.unlink(self.internal_filename + '-journal')
|
||||||
except:
|
except:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
print "m_db.py: 38"
|
print "cleanup()", self.internal_filename+'-journal'
|
||||||
print self.internal_filename+'-journal'
|
|
||||||
pass
|
pass
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -94,7 +92,6 @@ class MainModel(ModelMT):
|
|||||||
"""try to open db file"""
|
"""try to open db file"""
|
||||||
self.unsaved_project = False
|
self.unsaved_project = False
|
||||||
self.__create_internal_filename()
|
self.__create_internal_filename()
|
||||||
print self.internal_filename
|
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
|
|
||||||
source = bz2.BZ2File(filename, 'rb')
|
source = bz2.BZ2File(filename, 'rb')
|
||||||
@@ -279,7 +276,7 @@ class MainModel(ModelMT):
|
|||||||
"""
|
"""
|
||||||
if self.abort:
|
if self.abort:
|
||||||
return -1
|
return -1
|
||||||
# TODO: wielkość pliku jest jakoś dziwnie obsługiwana w sqlite - do sprawdzenia
|
|
||||||
_size = size
|
_size = size
|
||||||
walker = os.walk(path)
|
walker = os.walk(path)
|
||||||
root,dirs,files = walker.next()
|
root,dirs,files = walker.next()
|
||||||
|
|||||||
Reference in New Issue
Block a user