예제 #1
0
 def onActivated_gang(self, text):
     global user_name_current
     result = urlRequest.get_user_gang(course_current)
     if result != []:
         for iterate in result:
             if iterate['first_name'] == text:
                 user_name_current = iterate
예제 #2
0
 def onActivated_gang(self, text):
     global user_name_current
     result = urlRequest.get_user_gang(course_current)
     if result != []:
         for iterate in result:
             if iterate['first_name'] == text:
                 user_name_current = iterate
예제 #3
0
    def gang_related(self):
        self.clean_form()
        if self.checkBox_form.checkState() == 0:
            self.checkBox_form.animateClick()
            
        self.lineEdit_2.setText('Turma')
        if self.checkBox_name.checkState() == 2:
            self.checkBox_name.animateClick()
        if self.checkBox_path.checkState() == 2:
            self.checkBox_path.animateClick()
        if self.checkBox_initials.checkState() == 2:
            self.checkBox_initials.animateClick()
        if self.checkBox_workload.checkState() == 2:
            self.checkBox_workload.animateClick()
        if self.checkBox_description.checkState() == 2:
            self.checkBox_description.animateClick()
            
        if course_current:
            result = urlRequest.get_user_gang(course_current)
            if result != []:
                   for iterate in result:
                        self.comboBox.addItem(iterate['first_name'])
                        self.listWidget.addItem(iterate['first_name'])

            self.comboBox.activated[str].connect(self.onActivated_gang)
예제 #4
0
    def gang_related(self):
        self.clean_form()
        if self.checkBox_form.checkState() == 0:
            self.checkBox_form.animateClick()

        self.lineEdit_2.setText('Turma')
        if self.checkBox_name.checkState() == 2:
            self.checkBox_name.animateClick()
        if self.checkBox_path.checkState() == 2:
            self.checkBox_path.animateClick()
        if self.checkBox_initials.checkState() == 2:
            self.checkBox_initials.animateClick()
        if self.checkBox_workload.checkState() == 2:
            self.checkBox_workload.animateClick()
        if self.checkBox_description.checkState() == 2:
            self.checkBox_description.animateClick()

        if course_current:
            result = urlRequest.get_user_gang(course_current)
            if result != []:
                for iterate in result:
                    self.comboBox.addItem(iterate['first_name'])
                    self.listWidget.addItem(iterate['first_name'])

            self.comboBox.activated[str].connect(self.onActivated_gang)