How to use QComboBox selection in function
<p>I have following code using pyqt, which displays two QComboBox's and I want to use the selection values in my applications:</p>

<pre><code>class TACRG(QtGui.QMainWindow, design.Ui_MainWindow):
    def __init__(self, parent=None):
        super(TACRG, self).__init__(parent)
        self.setupUi(self)

        self.CList.addItems(["A", "B", "C", "D"])
        self.connect(self.CList, QtCore.SIGNAL('activated(QString)'), self.c_chosen)

        self.RList.addItems(["Q1", "Q2", "Q3", "Annual"])
        self.connect(self.RList, QtCore.SIGNAL('activated(QString)'), self.r_chosen)

    def r_chosen(self, text):
        report_start, report_end = report_period(text)

    def c_chosen(self, text):
        accs = get_ucs(text)

def report_period(r_period):
    year=date.today().year
    if r_period == 'Q1':
        return (str(year)+'0101',str(year)+'0331')
    elif r_period == 'Q2':
        return (str(year)+'0401',str(year)+'0630')
    elif r_period == 'Q3':
        return (str(year)+'0701',str(year)+'0930')
    elif r_period == 'Annual':
        return (str(year-1)+'0101',str(year-1)+'1231')

def get_ucs(c_name):
    """DO something""
    return """some string"""
</code></pre>

<p>Now I wan't to use the values returned from the report_period and get_ucs functions (report_start, report_end, accs) in another funtion, which must be called after these two executed. 
How can I achieve this?</p>