Display number of tracks in bottom right

git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@33 1daee41c-8060-4895-b1f0-2197c00d777a
This commit is contained in:
bjschuma 2009-06-28 18:44:41 +00:00
parent f605aa3bbd
commit ae0ba5468e
2 changed files with 30 additions and 1 deletions

View File

@ -20,6 +20,7 @@ class LibView(gtk.VBox):
self.pack_start(self.win)
self.pack_start(self.pbar,False,False,0)
self.makeRCMenu()
self.makeLabel()
self.update()
self.win.show()
@ -56,11 +57,22 @@ class LibView(gtk.VBox):
self.selection = self.treeview.get_selection()
self.selection.set_mode(gtk.SELECTION_MULTIPLE)
self.win.add(self.treeview)
self.updateLabel()
if rval==False:
self.pbar.hide()
return rval
def makeLabel(self):
self.label = gtk.Label(str(self.library.count)+" tracks in collection")
self.label.show()
def updateLabel(self):
self.label.set_text(str(self.library.count)+" tracks in collection")
self.label.show()
# Begin updating the library
def updates(self):
self.pbar.show()

View File

@ -324,6 +324,8 @@ class Window(gtk.Window):
self.libview.show()
self.divider.add1(self.libview)
rightPane=gtk.VBox(False,0)
tracks = gtk.TreeStore(str)
#for file in self.data.library.files:
# tracks.append(None,[file.title])
@ -340,7 +342,22 @@ class Window(gtk.Window):
trackscroll.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC)
trackscroll.add(trackview)
trackscroll.show()
self.divider.add2(trackscroll)
#rightPane.pack_start(trackscroll,False,False,0)
rightPane.add(trackscroll)
self.makeBottomRow(rightPane)
rightPane.show()
self.divider.add2(rightPane)
self.contentPane.show()
self.mainLayout.add(self.contentPane)
def makeBottomRow(self,vbox):
box = gtk.HBox(False,0)
box.pack_end(self.libview.label)
box.show()
align = gtk.Alignment(1,0.5,0,0)
align.add(box)
align.show()
vbox.pack_start(align,False,False,0)