Qt Designer List windows?

Post here if you need help with creating a Graphical User Interface in Python.

Qt Designer List windows?

Postby marcofgodai » Fri Nov 29, 2013 8:46 pm


I have a gui from qtdesigner in maya with a ListBox(item) in the gui. I want the objects in the scene to be listed in the gui window.
Take a look at my code. the list of Water and Fire open up in a new window, and the print ListObjects command lists the objects in the scene in the script editor.
How do I get the objects to list in the new window AND THEN, how do I get the list to populate in the designated gui window. (I also have a 'refresh' button for the gui list, any
help there would be appreciated as well.

Code: Select all
import maya.cmds as cmds
import maya.mel as mel

def List():
    listObjects = cmds.ls(g=True, cameras=True, lights=True)
    cmds.textScrollList(numberOfRows=8, allowMultiSelection=True, append=['Fire', 'Water'])
    print listObjects
Posts: 3
Joined: Mon Jun 17, 2013 8:43 pm

Return to GUI

Who is online

Users browsing this forum: No registered users and 3 guests