1
0
Fork 0
mirror of synced 2024-06-27 02:30:31 +12:00
Rare/rare/ui/utils/pathedit.py

46 lines
1.6 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'rare/ui/utils/pathedit.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
2021-10-04 09:18:38 +13:00
from PyQt5 import QtCore, QtWidgets
class Ui_PathEdit(object):
def setupUi(self, PathEdit):
PathEdit.setObjectName("PathEdit")
PathEdit.resize(385, 30)
2021-10-04 09:18:38 +13:00
PathEdit.setWindowTitle("PathEdit")
self.layout_pathedit = QtWidgets.QHBoxLayout(PathEdit)
2021-04-29 23:20:20 +12:00
self.layout_pathedit.setContentsMargins(0, 0, 0, 0)
self.layout_pathedit.setObjectName("layout_pathedit")
self.text_edit = QtWidgets.QLineEdit(PathEdit)
self.text_edit.setMinimumSize(QtCore.QSize(300, 0))
self.text_edit.setObjectName("text_edit")
self.layout_pathedit.addWidget(self.text_edit)
self.path_select = QtWidgets.QToolButton(PathEdit)
self.path_select.setObjectName("path_select")
self.layout_pathedit.addWidget(self.path_select)
self.retranslateUi(PathEdit)
def retranslateUi(self, PathEdit):
_translate = QtCore.QCoreApplication.translate
self.text_edit.setPlaceholderText(_translate("PathEdit", "Default"))
self.path_select.setText(_translate("PathEdit", "Browse..."))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
PathEdit = QtWidgets.QWidget()
ui = Ui_PathEdit()
ui.setupUi(PathEdit)
PathEdit.show()
sys.exit(app.exec_())