-
Notifications
You must be signed in to change notification settings - Fork 1
/
dialog.py
31 lines (27 loc) · 1.63 KB
/
dialog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(451, 322)
self.gridlayout = QtWidgets.QGridLayout(Dialog)
self.gridlayout.setObjectName("gridlayout")
self.loadFromFileButton = QtWidgets.QPushButton(Dialog)
self.loadFromFileButton.setObjectName("loadFromFileButton")
self.gridlayout.addWidget(self.loadFromFileButton, 0, 0, 1, 1)
self.label = QtWidgets.QLabel(Dialog)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setWordWrap(True)
self.label.setObjectName("label")
self.gridlayout.addWidget(self.label, 1, 0, 1, 1)
self.loadFromSharedMemoryButton = QtWidgets.QPushButton(Dialog)
self.loadFromSharedMemoryButton.setObjectName("loadFromSharedMemoryButton")
self.gridlayout.addWidget(self.loadFromSharedMemoryButton, 2, 0, 1, 1)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.loadFromFileButton.setText(_translate("Dialog", "Load Image From File..."))
self.label.setText(_translate("Dialog", "Launch the C++ app as well and load an image here. If the C++ (consumer) was compiled in threaded mode, it will automatically show the image, otherwise click the button at the bottom of that app."))
self.loadFromSharedMemoryButton.setText(_translate("Dialog", "Display Image From Shared Memory"))