Hi Justin, thanks for the feedback.
So I tried doing the following..

### UI File, manager_ui.py ###

import functools
import manager_main

class manager_ui(QtGui.QDialog):
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)
        self.setWindowTitle('UI Manager')

        # Build the GUI
        self.resize(QtCore.QSize(600, 350))

    def init_ui(self):
        self.color_table = QtGui.QTableWidget()
        self.color_table.setHorizontalHeaderLabels(['Geos in Scene',
        self.set_color_btn = QPushButton()

    def connect_signals(self):
.reset_color, self.color_table))
    # Function is to be called in the main file
    def reset_color(self):
        for row in xrange(self.variant_table.rowCount()):
            self.color_table.cellWidget(row, 1).setCurrentIndex(0)

    def populate_data(self):
        self.color_combobox = QtGui.QComboBox()
        self.color_table.setCellWidget(index, 1, self.color_combobox)

And this is my main file:
### Main File, manager_main.py ###

def reset_color(table):
    for row in xrange(table.rowCount()):
        table.cellWidget(row, 1).setCurrentIndex(0)

While it seems to work, can I check with you if this is the correct 
approach to go about?

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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to