Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Single(QtGui.QFrame):
- def __init__(self,parent=None):
- super(Single, self).__init__(parent)
- self.setStyleSheet('border:2px solid #866594;')
- self.resize(331,65)
- self.lable = QtGui.QLabel('ok', self)
- self.show()
- class FrameSingles(QtGui.QFrame):
- def __init__(self,parent=None):
- super(FrameSingles, self).__init__(parent)
- self.resize(331,611)
- self.move(19,60)
- self.setStyleSheet('color:white;border:1px solid #866594;border-radius:5px;background:#d57285;')
- self.hbox = QtGui.QHBoxLayout()
- self.setLayout(self.hbox)
- def data(self,group):
- i=20
- x=1
- z={}
- for key in group['items']:
- i+=65
- x+=1
- print type(key['name'])
- z[x]=Single(self)
- self.hbox.addChildWidget(z[x])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement