Exemplo n.º 1
0
 def __init__(self, parent=None):
     QtGui.QWidget.__init__(self, parent)
     self.ui = Ui_dialog()
     self.ui.setupUi(self)
     QtCore.QObject.connect(self.ui.browse_input,
                            QtCore.SIGNAL("clicked()"), self.browseInput)
     QtCore.QObject.connect(self.ui.chop_button, QtCore.SIGNAL("clicked()"),
                            self.chop)
Exemplo n.º 2
0
class StartQT4(QtGui.QMainWindow):
 def __init__(self, parent=None):
  QtGui.QWidget.__init__(self, parent)
  self.ui = Ui_dialog()
  self.ui.setupUi(self)
  QtCore.QObject.connect(self.ui.browse_input, QtCore.SIGNAL("clicked()"), self.browseInput)
  QtCore.QObject.connect(self.ui.chop_button, QtCore.SIGNAL("clicked()"), self.chop)

 def browseInput(self):
  fd = QtGui.QFileDialog(self)
  self.filename = fd.getOpenFileName()
  if isfile(self.filename):
   self.ui.input_path.setText(self.filename)

 def chop(self):
  videoPath = self.ui.input_path.text()
  freq1 = self.ui.tone_freq.text()
  freq2 = self.ui.tone_freq_2.text()
  freq3 = self.ui.tone_freq_3.text()
  chopify(videoPath, int(freq1), int(freq2), int(freq3))
Exemplo n.º 3
0
class StartQT4(QtGui.QMainWindow):
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.ui = Ui_dialog()
        self.ui.setupUi(self)
        QtCore.QObject.connect(self.ui.browse_input,
                               QtCore.SIGNAL("clicked()"), self.browseInput)
        QtCore.QObject.connect(self.ui.chop_button, QtCore.SIGNAL("clicked()"),
                               self.chop)

    def browseInput(self):
        fd = QtGui.QFileDialog(self)
        self.filename = fd.getOpenFileName()
        if isfile(self.filename):
            self.ui.input_path.setText(self.filename)

    def chop(self):
        videoPath = self.ui.input_path.text()
        freq1 = self.ui.tone_freq.text()
        freq2 = self.ui.tone_freq_2.text()
        freq3 = self.ui.tone_freq_3.text()
        chopify(videoPath, int(freq1), int(freq2), int(freq3))
Exemplo n.º 4
0
 def __init__(self, parent=None):
  QtGui.QWidget.__init__(self, parent)
  self.ui = Ui_dialog()
  self.ui.setupUi(self)
  QtCore.QObject.connect(self.ui.browse_input, QtCore.SIGNAL("clicked()"), self.browseInput)
  QtCore.QObject.connect(self.ui.chop_button, QtCore.SIGNAL("clicked()"), self.chop)