self.frame.setGeometry(QtCore.QRect(9, self.Record_Location, 575, 25))
self.frame.setMinimumSize(QtCore.QSize(575, 25))
self.frame.setMaximumSize(QtCore.QSize(575, 10))
self.frame.setFrameShape(QtGui.QFrame.NoFrame)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName("Frame_" + i)
self.frame.show()
#Adding Button
self.pushButton = QtGui.QPushButton(i,self.frame) #creating as child in above created frameself.pushButton.setGeometry(QtCore.QRect(0, 0, 65, 25))
self.pushButton.setAutoFillBackground(False)
self.pushButton.setCheckable(True)
self.pushButton.setObjectName("Btn_" + i)
print child1.objectName()
Are you trying to refer directly to the objectName you set dynamically as an attribute? Frame_1 would not automatically resolve to an object name unless you explicitly did:MainUi.Frame_1.children
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe