예제 #1
0
파일: ui.py 프로젝트: vagner4work/feedIO
    def __init__(self, parent):
        QDialog.__init__(self, parent)
        self.ui = Ui_addTopic()
        self.ui.setupUi(self)

        self.parent = parent

        self.connect(self.ui.btnCancel, SIGNAL('clicked()'), SLOT('close()'))
        self.connect(self.ui.btnAdd, SIGNAL('clicked()'), self.addTopic)
예제 #2
0
파일: ui.py 프로젝트: Lanka/feedIO
class AddTopicDialog(QDialog):
    def __init__(self, parent):
        QDialog.__init__(self, parent)
        self.ui = Ui_addTopic()
        self.ui.setupUi(self)
        self.parent = parent

        self.connect(self.ui.btnCancel, SIGNAL('clicked()'), SLOT('close()'))
        self.connect(self.ui.btnAdd, SIGNAL('clicked()'), self.addTopic)

    def addTopic(self):
        topic = unicode(self.ui.addTopicLinedit.text())
        topic = purify.cleanText(topic)
        classifier.addTopic(topic)
        self.close()
예제 #3
0
파일: ui.py 프로젝트: Lanka/feedIO
    def __init__(self, parent):
        QDialog.__init__(self, parent)
        self.ui = Ui_addTopic()
        self.ui.setupUi(self)
        self.parent = parent

        self.connect(self.ui.btnCancel, SIGNAL('clicked()'), SLOT('close()'))
        self.connect(self.ui.btnAdd, SIGNAL('clicked()'), self.addTopic)
예제 #4
0
파일: ui.py 프로젝트: onenonlycasper/feedIO
class AddTopicDialog(QDialog):
    def __init__(self, parent):
        QDialog.__init__(self, parent)
        self.ui = Ui_addTopic()
        self.ui.setupUi(self)

        self.parent = parent

        self.connect(self.ui.btnCancel, SIGNAL('clicked()'), SLOT('close()'))
        self.connect(self.ui.btnAdd, SIGNAL('clicked()'), self.addTopic)

    def addTopic(self):
        topic = unicode(self.ui.addTopicLinedit.text())
        #topic = purify.cleanText(topic) # gave an error when adding
        classifier.addTopic(topic)

        #Set the refreshDisplay status to true.
        self.parent.parent.refreshDisplay = True

        self.close()
예제 #5
0
파일: ui.py 프로젝트: vagner4work/feedIO
class AddTopicDialog(QDialog):
    def __init__(self, parent):
        QDialog.__init__(self, parent)
        self.ui = Ui_addTopic()
        self.ui.setupUi(self)

        self.parent = parent

        self.connect(self.ui.btnCancel, SIGNAL('clicked()'), SLOT('close()'))
        self.connect(self.ui.btnAdd, SIGNAL('clicked()'), self.addTopic)

    def addTopic(self):
        topic = unicode(self.ui.addTopicLinedit.text())
        #topic = purify.cleanText(topic) # gave an error when adding
        classifier.addTopic(topic)

        #Set the refreshDisplay status to true.
        self.parent.parent.refreshDisplay = True

        self.close()