Python MainWindow.Ui_MainWindow() Examples
The following are 3
code examples of MainWindow.Ui_MainWindow().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
MainWindow
, or try the search function
.
Example #1
Source File: gui.py From SWProxy with GNU Lesser General Public License v3.0 | 5 votes |
def __init__(self, ip, port=8080, parent=None): QtGui.QMainWindow.__init__(self, parent) self.ui = Ui_MainWindow() self.ui.setupUi(self) self.ui.ipAddress.setText(ip) self.ui.proxyPort.setValue(port) self.ui.startProxy.clicked.connect(self.startStopProxy) self.ui.actionQuit.triggered.connect(self.quit) self.ui.actionAbout.triggered.connect(self.about) self.ui.actionOpen_PCAP.triggered.connect(self.openPCAP) self.proxy = None
Example #2
Source File: VideoMainWindow.py From Insect_Identification with Apache License 2.0 | 5 votes |
def __init__(self, parent=None): QMainWindow.__init__(self, parent) self.ui = Ui_MainWindow() self.ui.setupUi(self) self.video = Video(cv2.VideoCapture(0)) self._timer = QTimer(self) self._timer.timeout.connect(self.play) self._timer.start(24) self.update() self.ui.btnCapture.clicked.connect(self.cb) self.ret, self.captureFrame = self.video.capture.read()
Example #3
Source File: gui.py From SWProxy-plugins with GNU Lesser General Public License v3.0 | 5 votes |
def __init__(self, ip, port=8080, parent=None): QtGui.QMainWindow.__init__(self, parent) self.ui = Ui_MainWindow() self.ui.setupUi(self) self.ui.ipAddress.setText(ip) self.ui.proxyPort.setValue(port) self.ui.startProxy.clicked.connect(self.startStopProxy) self.ui.actionQuit.triggered.connect(self.quit) self.ui.actionAbout.triggered.connect(self.about) self.ui.actionOpen_PCAP.triggered.connect(self.openPCAP) self.proxy = None