Hey there again...
so I have this uiCode.py with a QListWidget
listWidget = QtGui.QListWidget(container)
also in uiCode.py my Signal Class
class ListWindow(QtGui.QMainWindow):
refreshClicked = Signal(list)
also in uiCode.py this function
def refresh():
window.refreshClicked.emit(listWidget.item())
button.clicked.connect(refresh)
In my mainCode.py
def refresh():
listWidget.clear()
items = pmc.selected()
for item in items:
newItem = QtGui.QListWidgetItem( item.nodeName())
listWidget.addItem(newItem)
print 'Print statement is Working...'
_window.refreshClicked.connect(refresh)
however, it says that listWidget is not referenced even tho it is imported
with the uiCode.
Question : How do i actually get my the QListWidget and its
QListWidgetItems referenced into the mainCode.py properly.
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/33a46e73-5745-45aa-b4e4-d1810e28d152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.