Exemplo n.º 1
0
   def __init__(self):
      QtGui.QWidget.__init__(self)
      
      self.cach = cache()
      albumlist = self.cach.getAlbumItemList(None,None,"")
      self.albumListview = albumItemListWidget(albumlist)
      self.songListview  = albumItemListWidget([])
      self.player = PlayerWidget()      
      self.player.close()
      self.songListview.close()
      self.albumListview.setMinimumWidth(1000) 
      self.songListview.setMaximumWidth(1) 
      self.buttons = JBButtons()
      self.k = []  
      self.listWidget = JBlist(self.k)
      self.stackbar = stackBar()

      self.Vlayout = QtGui.QVBoxLayout(self)
      self.Hlayout = QtGui.QHBoxLayout(self)

      self.Hlayout.addWidget(self.buttons)
      self.Hlayout.addWidget(self.albumListview)
      self.Hlayout.addWidget(self.songListview)
      self.Vlayout.addLayout(self.Hlayout)
      self.Vlayout.addWidget( self.stackbar)

      self.artistlistopen = False
      self.genrelistopen  = False
      self.songlistopen = False
      self.listslotvalidity  = True
      self.buttons.backButton.close()
Exemplo n.º 2
0
	def initUi(self):
		self.showMaximized()
		self.screen = QtGui.QApplication.desktop()
		self.width = self.screen.width()
		self.height = self.screen.height()
		self.graphicsscene = QtGui.QGraphicsScene(self)
		self.bg = QtGui.QPixmap("/home/deepak/Downloads/bg4.jpg")
		self.bgbrush = QtGui.QBrush(self.bg)
		#self.bgbrush.setTexture(self.bg)
		self.graphicsscene.setSceneRect(0,0,self.width-50,self.height-60)
		self.setBackgroundBrush(self.bgbrush)

		

		self.cac = cache1.cache() 
   		self.albumlist = self.cac.getAlbumItemList(None,None,'')
                self.songlist = self.cac.getSongItemList(" ")
   		li = [('kio','lop'),('kol','koi')]

#################################################################################################

		self.albumGrid = albumItemListWidget.albumItemListWidget(self.albumlist)
                self.songGrid = songItemListWidget.songItemListWidget(self.songlist)
                self.JBListItem = JBlistWidget.JBlist(["hui"])

                self.player = playerdone.PlayerWidget()
		
                self.navigator = navigator.navi()
                
                self.artistButton =  QtGui.QPushButton('                       ')
		self.artistButton.setStyleSheet(_fromUtf8("background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.558909, y2:0.0514091, stop:0 rgba(0, 0, 0, 100), stop:1 rgba(255, 255, 255, 100));\n"
"font: 18pt \"Arial Black\";\n"
"color: rgb(255, 255, 255);"))
                self.genreButton =  QtGui.QPushButton('                       ')
		self.genreButton.setStyleSheet(_fromUtf8("background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.558909, y2:0.0514091, stop:0 rgba(0, 0, 0, 100), stop:1 rgba(255, 255, 255, 100));\n"
"font: 18pt \"Arial Black\";\n"
"color: rgb(255, 255, 255);"))
                self.scanButton =  QtGui.QPushButton('                       ')
		self.scanButton.setStyleSheet(_fromUtf8("background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0.558909, y2:0.0514091, stop:0 rgba(0, 0, 0, 100), stop:1 rgba(255, 255, 255, 100));\n"
"font: 18pt \"Arial Black\";\n"
"color: rgb(255, 255, 255);"))
                self.stack = stack.stackBar()                 

		self.albumGrid.updatelist(self.albumlist)
		self.nbutton = QtGui.QPushButton('                                       ')
		self.graphicsscene.addWidget(self.player)
		self.graphicsscene.addWidget(self.navigator)
		self.graphicsscene.addWidget(self.nbutton)
		self.graphicsscene.addWidget(self.albumGrid)
		self.graphicsscene.addWidget(self.artistButton)
		self.graphicsscene.addWidget(self.stack)
		self.graphicsscene.addWidget(self.genreButton)
		self.graphicsscene.addWidget(self.scanButton)
		self.setupStateMachine()
Exemplo n.º 3
0
  def __init__(self):
     QtGui.QWidget.__init__(self)
     self.Vlayout = QtGui.QVBoxLayout(self)  
     self.artistButton = QtGui.QPushButton("Artist") 
     self.genreButton = QtGui.QPushButton("Genre")
     self.scanButton = QtGui.QPushButton("Scan") 
     self.Vlayout.addWidget(self.artistButton )
     self.Vlayout.addWidget(self.genreButton )
     self.Vlayout.addWidget(self.scanButton )
 
     cach = cache()
     albumlist = cach.getAlbumItemList(None,None)
     self.albumListview = albumItemListWidget(albumlist)
     #self.buttons = JBButtons()
     self.Hlayout = QtGui.QHBoxLayout(self)
     self.H2layout = QtGui.QHBoxLayout(self.Hlayout)
     self.H2layout.addWidget(self.albumListview)
     #self.Hlayout.addChildLayout(self.Vlayout)
     self.Hlayout.addChildLayout(self.H2layout)