OllamaInterface/Ui_RunOllamaServerDialog.py

changeset 7
eb1dec15b2f0
child 20
8cb7bfe07e15
equal deleted inserted replaced
6:d8064fb63eac 7:eb1dec15b2f0
1 # Form implementation generated from reading ui file 'OllamaInterface/RunOllamaServerDialog.ui'
2 #
3 # Created by: PyQt6 UI code generator 6.7.1
4 #
5 # WARNING: Any manual changes made to this file will be lost when pyuic6 is
6 # run again. Do not edit this file unless you know what you are doing.
7
8
9 from PyQt6 import QtCore, QtGui, QtWidgets
10
11
12 class Ui_RunOllamaServerDialog(object):
13 def setupUi(self, RunOllamaServerDialog):
14 RunOllamaServerDialog.setObjectName("RunOllamaServerDialog")
15 RunOllamaServerDialog.resize(600, 500)
16 RunOllamaServerDialog.setSizeGripEnabled(True)
17 self.verticalLayout_2 = QtWidgets.QVBoxLayout(RunOllamaServerDialog)
18 self.verticalLayout_2.setObjectName("verticalLayout_2")
19 self.groupBox = QtWidgets.QGroupBox(parent=RunOllamaServerDialog)
20 self.groupBox.setObjectName("groupBox")
21 self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
22 self.verticalLayout.setObjectName("verticalLayout")
23 self.outputEdit = QtWidgets.QPlainTextEdit(parent=self.groupBox)
24 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
25 sizePolicy.setHorizontalStretch(0)
26 sizePolicy.setVerticalStretch(0)
27 sizePolicy.setHeightForWidth(self.outputEdit.sizePolicy().hasHeightForWidth())
28 self.outputEdit.setSizePolicy(sizePolicy)
29 self.outputEdit.setLineWrapMode(QtWidgets.QPlainTextEdit.LineWrapMode.WidgetWidth)
30 self.outputEdit.setReadOnly(True)
31 self.outputEdit.setObjectName("outputEdit")
32 self.verticalLayout.addWidget(self.outputEdit)
33 self.verticalLayout_2.addWidget(self.groupBox)
34 self.horizontalLayout = QtWidgets.QHBoxLayout()
35 self.horizontalLayout.setObjectName("horizontalLayout")
36 self.restartServerButton = QtWidgets.QPushButton(parent=RunOllamaServerDialog)
37 self.restartServerButton.setEnabled(False)
38 self.restartServerButton.setObjectName("restartServerButton")
39 self.horizontalLayout.addWidget(self.restartServerButton)
40 self.stopServerButton = QtWidgets.QPushButton(parent=RunOllamaServerDialog)
41 self.stopServerButton.setEnabled(False)
42 self.stopServerButton.setObjectName("stopServerButton")
43 self.horizontalLayout.addWidget(self.stopServerButton)
44 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
45 self.horizontalLayout.addItem(spacerItem)
46 self.buttonBox = QtWidgets.QDialogButtonBox(parent=RunOllamaServerDialog)
47 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
48 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Close)
49 self.buttonBox.setObjectName("buttonBox")
50 self.horizontalLayout.addWidget(self.buttonBox)
51 self.verticalLayout_2.addLayout(self.horizontalLayout)
52
53 self.retranslateUi(RunOllamaServerDialog)
54 self.buttonBox.rejected.connect(RunOllamaServerDialog.reject) # type: ignore
55 QtCore.QMetaObject.connectSlotsByName(RunOllamaServerDialog)
56 RunOllamaServerDialog.setTabOrder(self.outputEdit, self.restartServerButton)
57 RunOllamaServerDialog.setTabOrder(self.restartServerButton, self.stopServerButton)
58
59 def retranslateUi(self, RunOllamaServerDialog):
60 _translate = QtCore.QCoreApplication.translate
61 RunOllamaServerDialog.setWindowTitle(_translate("RunOllamaServerDialog", "ollama Server"))
62 self.groupBox.setTitle(_translate("RunOllamaServerDialog", "Output"))
63 self.restartServerButton.setToolTip(_translate("RunOllamaServerDialog", "Press to restart the loacl ollama server."))
64 self.restartServerButton.setText(_translate("RunOllamaServerDialog", "Re-Start Server"))
65 self.stopServerButton.setToolTip(_translate("RunOllamaServerDialog", "Press to stop the running ollama server."))
66 self.stopServerButton.setText(_translate("RunOllamaServerDialog", "Stop Server"))

eric ide

mercurial