1 Star 0 Fork 61

azhg/TDXPystock

forked from 金诺/TDXPystock 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
交易ui.py 33.74 KB
一键复制 编辑 原始数据 按行查看 历史
金诺 提交于 2021-06-16 20:04 . add
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\pythonTtest\TDXPystock\交易ui.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.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_trade(object):
def setupUi(self, trade):
trade.setObjectName("trade")
trade.resize(917, 618)
self.label = QtWidgets.QLabel(trade)
self.label.setGeometry(QtCore.QRect(120, 10, 72, 15))
self.label.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(trade)
self.label_2.setGeometry(QtCore.QRect(730, 10, 72, 15))
self.label_2.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(0, 170, 0);")
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(trade)
self.label_3.setGeometry(QtCore.QRect(40, 40, 72, 15))
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(trade)
self.label_4.setGeometry(QtCore.QRect(40, 70, 72, 15))
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(trade)
self.label_5.setGeometry(QtCore.QRect(40, 100, 72, 15))
self.label_5.setObjectName("label_5")
self.label_6 = QtWidgets.QLabel(trade)
self.label_6.setGeometry(QtCore.QRect(40, 130, 72, 15))
self.label_6.setObjectName("label_6")
self.lineEdit_buycode = QtWidgets.QLineEdit(trade)
self.lineEdit_buycode.setGeometry(QtCore.QRect(110, 40, 113, 21))
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buycode.setFont(font)
self.lineEdit_buycode.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buycode.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buycode.setText("")
self.lineEdit_buycode.setMaxLength(6)
self.lineEdit_buycode.setObjectName("lineEdit_buycode")
self.lineEdit_buyname = QtWidgets.QLineEdit(trade)
self.lineEdit_buyname.setGeometry(QtCore.QRect(110, 70, 113, 21))
self.lineEdit_buyname.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buyname.setObjectName("lineEdit_buyname")
self.lineEdit_buyprice = QtWidgets.QLineEdit(trade)
self.lineEdit_buyprice.setGeometry(QtCore.QRect(110, 100, 113, 21))
self.lineEdit_buyprice.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buyprice.setInputMethodHints(QtCore.Qt.ImhNone)
self.lineEdit_buyprice.setMaxLength(6)
self.lineEdit_buyprice.setObjectName("lineEdit_buyprice")
self.lineEdit_buycount = QtWidgets.QLineEdit(trade)
self.lineEdit_buycount.setGeometry(QtCore.QRect(110, 130, 113, 21))
self.lineEdit_buycount.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buycount.setMaxLength(6)
self.lineEdit_buycount.setObjectName("lineEdit_buycount")
self.label_7 = QtWidgets.QLabel(trade)
self.label_7.setGeometry(QtCore.QRect(650, 100, 72, 15))
self.label_7.setObjectName("label_7")
self.label_8 = QtWidgets.QLabel(trade)
self.label_8.setGeometry(QtCore.QRect(650, 40, 72, 15))
self.label_8.setObjectName("label_8")
self.lineEdit_sellcode = QtWidgets.QLineEdit(trade)
self.lineEdit_sellcode.setGeometry(QtCore.QRect(720, 40, 113, 21))
self.lineEdit_sellcode.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(0, 0, 0);")
self.lineEdit_sellcode.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
self.lineEdit_sellcode.setText("")
self.lineEdit_sellcode.setMaxLength(6)
self.lineEdit_sellcode.setObjectName("lineEdit_sellcode")
self.label_9 = QtWidgets.QLabel(trade)
self.label_9.setGeometry(QtCore.QRect(650, 130, 72, 15))
self.label_9.setObjectName("label_9")
self.lineEdit_sellcount = QtWidgets.QLineEdit(trade)
self.lineEdit_sellcount.setGeometry(QtCore.QRect(720, 130, 113, 21))
self.lineEdit_sellcount.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(0, 0, 0);")
self.lineEdit_sellcount.setMaxLength(6)
self.lineEdit_sellcount.setObjectName("lineEdit_sellcount")
self.lineEdit_sellname = QtWidgets.QLineEdit(trade)
self.lineEdit_sellname.setGeometry(QtCore.QRect(720, 70, 113, 21))
self.lineEdit_sellname.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(0, 0, 0);")
self.lineEdit_sellname.setObjectName("lineEdit_sellname")
self.label_10 = QtWidgets.QLabel(trade)
self.label_10.setGeometry(QtCore.QRect(650, 70, 72, 15))
self.label_10.setObjectName("label_10")
self.lineEdit_sellprice = QtWidgets.QLineEdit(trade)
self.lineEdit_sellprice.setGeometry(QtCore.QRect(720, 100, 113, 21))
self.lineEdit_sellprice.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(0, 0, 0);")
self.lineEdit_sellprice.setMaxLength(6)
self.lineEdit_sellprice.setObjectName("lineEdit_sellprice")
self.pushButton_buycommit = QtWidgets.QPushButton(trade)
self.pushButton_buycommit.setGeometry(QtCore.QRect(152, 170, 71, 28))
self.pushButton_buycommit.setStyleSheet("color: rgb(255, 0, 0);")
self.pushButton_buycommit.setObjectName("pushButton_buycommit")
self.pushButton_sellcommit = QtWidgets.QPushButton(trade)
self.pushButton_sellcommit.setGeometry(QtCore.QRect(740, 170, 93, 28))
self.pushButton_sellcommit.setStyleSheet("color: rgb(0, 170, 0);")
self.pushButton_sellcommit.setObjectName("pushButton_sellcommit")
self.pushButton_buyclear = QtWidgets.QPushButton(trade)
self.pushButton_buyclear.setGeometry(QtCore.QRect(70, 170, 61, 28))
self.pushButton_buyclear.setObjectName("pushButton_buyclear")
self.pushButton_sellclear = QtWidgets.QPushButton(trade)
self.pushButton_sellclear.setGeometry(QtCore.QRect(660, 170, 61, 28))
self.pushButton_sellclear.setObjectName("pushButton_sellclear")
self.tabWidget = QtWidgets.QTabWidget(trade)
self.tabWidget.setGeometry(QtCore.QRect(0, 310, 921, 311))
self.tabWidget.setStyleSheet("font: 10pt \"楷体\";")
self.tabWidget.setObjectName("tabWidget")
self.haveaount = QtWidgets.QWidget()
self.haveaount.setObjectName("haveaount")
self.tableView_havedetail = QtWidgets.QTableView(self.haveaount)
self.tableView_havedetail.setGeometry(QtCore.QRect(0, 0, 911, 281))
self.tableView_havedetail.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableView_havedetail.setObjectName("tableView_havedetail")
self.tabWidget.addTab(self.haveaount, "")
self.commited = QtWidgets.QWidget()
self.commited.setObjectName("commited")
self.tableView_commitdetail = QtWidgets.QTableView(self.commited)
self.tableView_commitdetail.setGeometry(QtCore.QRect(-10, 0, 921, 281))
self.tableView_commitdetail.setStyleSheet("font: 10pt \"新宋体\";")
self.tableView_commitdetail.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableView_commitdetail.setObjectName("tableView_commitdetail")
self.tabWidget.addTab(self.commited, "")
self.myuseselect = QtWidgets.QWidget()
self.myuseselect.setObjectName("myuseselect")
self.tableView_mystocks = QtWidgets.QTableView(self.myuseselect)
self.tableView_mystocks.setGeometry(QtCore.QRect(0, 0, 921, 281))
self.tableView_mystocks.setStyleSheet("font: 10pt \"新宋体\";")
self.tableView_mystocks.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableView_mystocks.setObjectName("tableView_mystocks")
self.tabWidget.addTab(self.myuseselect, "")
self.traderecord = QtWidgets.QWidget()
self.traderecord.setObjectName("traderecord")
self.tableView_tradehistoryinfo = QtWidgets.QTableView(self.traderecord)
self.tableView_tradehistoryinfo.setGeometry(QtCore.QRect(0, 0, 921, 281))
self.tableView_tradehistoryinfo.setStyleSheet("font: 10pt \"新宋体\";")
self.tableView_tradehistoryinfo.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tableView_tradehistoryinfo.setObjectName("tableView_tradehistoryinfo")
self.tabWidget.addTab(self.traderecord, "")
self.label_currenttime = QtWidgets.QLabel(trade)
self.label_currenttime.setGeometry(QtCore.QRect(650, 210, 72, 15))
self.label_currenttime.setText("")
self.label_currenttime.setObjectName("label_currenttime")
self.label_bank = QtWidgets.QLabel(trade)
self.label_bank.setGeometry(QtCore.QRect(650, 290, 121, 20))
self.label_bank.setObjectName("label_bank")
self.layoutWidget = QtWidgets.QWidget(trade)
self.layoutWidget.setGeometry(QtCore.QRect(300, 10, 271, 301))
self.layoutWidget.setObjectName("layoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.label_11 = QtWidgets.QLabel(self.layoutWidget)
self.label_11.setObjectName("label_11")
self.gridLayout.addWidget(self.label_11, 0, 0, 1, 1)
self.lineEdit_sell5 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell5.setFont(font)
self.lineEdit_sell5.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell5.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell5.setText("")
self.lineEdit_sell5.setMaxLength(6)
self.lineEdit_sell5.setObjectName("lineEdit_sell5")
self.gridLayout.addWidget(self.lineEdit_sell5, 0, 1, 1, 1)
self.lineEdit_sell5vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell5vol.setFont(font)
self.lineEdit_sell5vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell5vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell5vol.setText("")
self.lineEdit_sell5vol.setMaxLength(6)
self.lineEdit_sell5vol.setObjectName("lineEdit_sell5vol")
self.gridLayout.addWidget(self.lineEdit_sell5vol, 0, 3, 1, 1)
self.label_12 = QtWidgets.QLabel(self.layoutWidget)
self.label_12.setObjectName("label_12")
self.gridLayout.addWidget(self.label_12, 1, 0, 1, 1)
self.lineEdit_sell4 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell4.setFont(font)
self.lineEdit_sell4.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell4.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell4.setText("")
self.lineEdit_sell4.setMaxLength(6)
self.lineEdit_sell4.setObjectName("lineEdit_sell4")
self.gridLayout.addWidget(self.lineEdit_sell4, 1, 1, 1, 1)
self.lineEdit_sell4vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell4vol.setFont(font)
self.lineEdit_sell4vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell4vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell4vol.setText("")
self.lineEdit_sell4vol.setMaxLength(6)
self.lineEdit_sell4vol.setObjectName("lineEdit_sell4vol")
self.gridLayout.addWidget(self.lineEdit_sell4vol, 1, 3, 1, 1)
self.label_13 = QtWidgets.QLabel(self.layoutWidget)
self.label_13.setObjectName("label_13")
self.gridLayout.addWidget(self.label_13, 2, 0, 1, 1)
self.lineEdit_sell3 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell3.setFont(font)
self.lineEdit_sell3.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell3.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell3.setText("")
self.lineEdit_sell3.setMaxLength(6)
self.lineEdit_sell3.setObjectName("lineEdit_sell3")
self.gridLayout.addWidget(self.lineEdit_sell3, 2, 1, 1, 1)
self.lineEdit_sell3vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell3vol.setFont(font)
self.lineEdit_sell3vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell3vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell3vol.setText("")
self.lineEdit_sell3vol.setMaxLength(6)
self.lineEdit_sell3vol.setObjectName("lineEdit_sell3vol")
self.gridLayout.addWidget(self.lineEdit_sell3vol, 2, 3, 1, 1)
self.label_14 = QtWidgets.QLabel(self.layoutWidget)
self.label_14.setObjectName("label_14")
self.gridLayout.addWidget(self.label_14, 3, 0, 1, 1)
self.lineEdit_sell2 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell2.setFont(font)
self.lineEdit_sell2.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell2.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell2.setText("")
self.lineEdit_sell2.setMaxLength(6)
self.lineEdit_sell2.setObjectName("lineEdit_sell2")
self.gridLayout.addWidget(self.lineEdit_sell2, 3, 1, 1, 1)
self.lineEdit_sell2vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell2vol.setFont(font)
self.lineEdit_sell2vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell2vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell2vol.setText("")
self.lineEdit_sell2vol.setMaxLength(6)
self.lineEdit_sell2vol.setObjectName("lineEdit_sell2vol")
self.gridLayout.addWidget(self.lineEdit_sell2vol, 3, 3, 1, 1)
self.label_15 = QtWidgets.QLabel(self.layoutWidget)
self.label_15.setObjectName("label_15")
self.gridLayout.addWidget(self.label_15, 4, 0, 1, 1)
self.lineEdit_sell1 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell1.setFont(font)
self.lineEdit_sell1.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell1.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell1.setText("")
self.lineEdit_sell1.setMaxLength(6)
self.lineEdit_sell1.setObjectName("lineEdit_sell1")
self.gridLayout.addWidget(self.lineEdit_sell1, 4, 1, 1, 1)
self.lineEdit_sell1vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_sell1vol.setFont(font)
self.lineEdit_sell1vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_sell1vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_sell1vol.setText("")
self.lineEdit_sell1vol.setMaxLength(6)
self.lineEdit_sell1vol.setObjectName("lineEdit_sell1vol")
self.gridLayout.addWidget(self.lineEdit_sell1vol, 4, 3, 1, 1)
self.label_21 = QtWidgets.QLabel(self.layoutWidget)
self.label_21.setObjectName("label_21")
self.gridLayout.addWidget(self.label_21, 5, 0, 1, 1)
self.lineEdit_currentprice = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_currentprice.setFont(font)
self.lineEdit_currentprice.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_currentprice.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_currentprice.setText("")
self.lineEdit_currentprice.setMaxLength(6)
self.lineEdit_currentprice.setObjectName("lineEdit_currentprice")
self.gridLayout.addWidget(self.lineEdit_currentprice, 5, 1, 1, 1)
self.label_22 = QtWidgets.QLabel(self.layoutWidget)
self.label_22.setObjectName("label_22")
self.gridLayout.addWidget(self.label_22, 5, 2, 1, 1)
self.lineEdit_currentzdf = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_currentzdf.setFont(font)
self.lineEdit_currentzdf.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_currentzdf.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_currentzdf.setText("")
self.lineEdit_currentzdf.setMaxLength(6)
self.lineEdit_currentzdf.setObjectName("lineEdit_currentzdf")
self.gridLayout.addWidget(self.lineEdit_currentzdf, 5, 3, 1, 1)
self.label_16 = QtWidgets.QLabel(self.layoutWidget)
self.label_16.setObjectName("label_16")
self.gridLayout.addWidget(self.label_16, 6, 0, 1, 1)
self.lineEdit_buy1 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy1.setFont(font)
self.lineEdit_buy1.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy1.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy1.setText("")
self.lineEdit_buy1.setMaxLength(6)
self.lineEdit_buy1.setObjectName("lineEdit_buy1")
self.gridLayout.addWidget(self.lineEdit_buy1, 6, 1, 1, 1)
self.lineEdit_buy1vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy1vol.setFont(font)
self.lineEdit_buy1vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy1vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy1vol.setText("")
self.lineEdit_buy1vol.setMaxLength(6)
self.lineEdit_buy1vol.setObjectName("lineEdit_buy1vol")
self.gridLayout.addWidget(self.lineEdit_buy1vol, 6, 3, 1, 1)
self.label_18 = QtWidgets.QLabel(self.layoutWidget)
self.label_18.setObjectName("label_18")
self.gridLayout.addWidget(self.label_18, 7, 0, 1, 1)
self.lineEdit_buy2 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy2.setFont(font)
self.lineEdit_buy2.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy2.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy2.setText("")
self.lineEdit_buy2.setMaxLength(6)
self.lineEdit_buy2.setObjectName("lineEdit_buy2")
self.gridLayout.addWidget(self.lineEdit_buy2, 7, 1, 1, 1)
self.lineEdit_buy2vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy2vol.setFont(font)
self.lineEdit_buy2vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy2vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy2vol.setText("")
self.lineEdit_buy2vol.setMaxLength(6)
self.lineEdit_buy2vol.setObjectName("lineEdit_buy2vol")
self.gridLayout.addWidget(self.lineEdit_buy2vol, 7, 3, 1, 1)
self.label_19 = QtWidgets.QLabel(self.layoutWidget)
self.label_19.setObjectName("label_19")
self.gridLayout.addWidget(self.label_19, 8, 0, 1, 1)
self.lineEdit_buy3 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy3.setFont(font)
self.lineEdit_buy3.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy3.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy3.setText("")
self.lineEdit_buy3.setMaxLength(6)
self.lineEdit_buy3.setObjectName("lineEdit_buy3")
self.gridLayout.addWidget(self.lineEdit_buy3, 8, 1, 1, 1)
self.lineEdit_buy3vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy3vol.setFont(font)
self.lineEdit_buy3vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy3vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy3vol.setText("")
self.lineEdit_buy3vol.setMaxLength(6)
self.lineEdit_buy3vol.setObjectName("lineEdit_buy3vol")
self.gridLayout.addWidget(self.lineEdit_buy3vol, 8, 3, 1, 1)
self.label_17 = QtWidgets.QLabel(self.layoutWidget)
self.label_17.setObjectName("label_17")
self.gridLayout.addWidget(self.label_17, 9, 0, 1, 1)
self.lineEdit_buy4 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy4.setFont(font)
self.lineEdit_buy4.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy4.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy4.setText("")
self.lineEdit_buy4.setMaxLength(6)
self.lineEdit_buy4.setObjectName("lineEdit_buy4")
self.gridLayout.addWidget(self.lineEdit_buy4, 9, 1, 1, 1)
self.lineEdit_buy4vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy4vol.setFont(font)
self.lineEdit_buy4vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy4vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy4vol.setText("")
self.lineEdit_buy4vol.setMaxLength(6)
self.lineEdit_buy4vol.setObjectName("lineEdit_buy4vol")
self.gridLayout.addWidget(self.lineEdit_buy4vol, 9, 3, 1, 1)
self.label_20 = QtWidgets.QLabel(self.layoutWidget)
self.label_20.setObjectName("label_20")
self.gridLayout.addWidget(self.label_20, 10, 0, 1, 1)
self.lineEdit_buy5 = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy5.setFont(font)
self.lineEdit_buy5.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy5.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy5.setText("")
self.lineEdit_buy5.setMaxLength(6)
self.lineEdit_buy5.setObjectName("lineEdit_buy5")
self.gridLayout.addWidget(self.lineEdit_buy5, 10, 1, 1, 1)
self.lineEdit_buy5vol = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_buy5vol.setFont(font)
self.lineEdit_buy5vol.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_buy5vol.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_buy5vol.setText("")
self.lineEdit_buy5vol.setMaxLength(6)
self.lineEdit_buy5vol.setObjectName("lineEdit_buy5vol")
self.gridLayout.addWidget(self.lineEdit_buy5vol, 10, 3, 1, 1)
self.label_23 = QtWidgets.QLabel(self.layoutWidget)
self.label_23.setObjectName("label_23")
self.gridLayout.addWidget(self.label_23, 11, 0, 1, 1)
self.lineEdit_ZT = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_ZT.setFont(font)
self.lineEdit_ZT.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_ZT.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_ZT.setText("")
self.lineEdit_ZT.setMaxLength(6)
self.lineEdit_ZT.setObjectName("lineEdit_ZT")
self.gridLayout.addWidget(self.lineEdit_ZT, 11, 1, 1, 1)
self.label_24 = QtWidgets.QLabel(self.layoutWidget)
self.label_24.setObjectName("label_24")
self.gridLayout.addWidget(self.label_24, 11, 2, 1, 1)
self.lineEdit_DT = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_DT.setFont(font)
self.lineEdit_DT.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(0, 255, 0);")
self.lineEdit_DT.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_DT.setText("")
self.lineEdit_DT.setMaxLength(6)
self.lineEdit_DT.setObjectName("lineEdit_DT")
self.gridLayout.addWidget(self.lineEdit_DT, 11, 3, 1, 1)
self.label_40 = QtWidgets.QLabel(self.layoutWidget)
self.label_40.setObjectName("label_40")
self.gridLayout.addWidget(self.label_40, 12, 0, 1, 1)
self.lineEdit_wb = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_wb.setFont(font)
self.lineEdit_wb.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_wb.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_wb.setText("")
self.lineEdit_wb.setMaxLength(6)
self.lineEdit_wb.setObjectName("lineEdit_wb")
self.gridLayout.addWidget(self.lineEdit_wb, 12, 1, 1, 1)
self.label_41 = QtWidgets.QLabel(self.layoutWidget)
self.label_41.setObjectName("label_41")
self.gridLayout.addWidget(self.label_41, 12, 2, 1, 1)
self.lineEdit_wc = QtWidgets.QLineEdit(self.layoutWidget)
font = QtGui.QFont()
font.setFamily("楷体")
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.lineEdit_wc.setFont(font)
self.lineEdit_wc.setStyleSheet("font: 10pt \"楷体\";\n"
"color: rgb(255, 0, 0);")
self.lineEdit_wc.setInputMethodHints(QtCore.Qt.ImhDigitsOnly|QtCore.Qt.ImhFormattedNumbersOnly)
self.lineEdit_wc.setText("")
self.lineEdit_wc.setMaxLength(6)
self.lineEdit_wc.setObjectName("lineEdit_wc")
self.gridLayout.addWidget(self.lineEdit_wc, 12, 3, 1, 1)
self.label_sumamount = QtWidgets.QLabel(trade)
self.label_sumamount.setGeometry(QtCore.QRect(650, 230, 161, 16))
self.label_sumamount.setObjectName("label_sumamount")
self.label_sumvol = QtWidgets.QLabel(trade)
self.label_sumvol.setGeometry(QtCore.QRect(650, 260, 161, 16))
self.label_sumvol.setObjectName("label_sumvol")
self.label_acountAmount = QtWidgets.QLabel(trade)
self.label_acountAmount.setGeometry(QtCore.QRect(30, 220, 191, 16))
self.label_acountAmount.setObjectName("label_acountAmount")
self.label_acountbeused = QtWidgets.QLabel(trade)
self.label_acountbeused.setGeometry(QtCore.QRect(30, 250, 191, 16))
self.label_acountbeused.setObjectName("label_acountbeused")
self.retranslateUi(trade)
self.tabWidget.setCurrentIndex(1)
QtCore.QMetaObject.connectSlotsByName(trade)
def retranslateUi(self, trade):
_translate = QtCore.QCoreApplication.translate
trade.setWindowTitle(_translate("trade", "Form"))
self.label.setText(_translate("trade", "买入股票 "))
self.label_2.setText(_translate("trade", "卖入股票 "))
self.label_3.setText(_translate("trade", "代码:"))
self.label_4.setText(_translate("trade", "名称:"))
self.label_5.setText(_translate("trade", "买入价格:"))
self.label_6.setText(_translate("trade", "买入股数:"))
self.label_7.setText(_translate("trade", "卖出价格:"))
self.label_8.setText(_translate("trade", "代码:"))
self.label_9.setText(_translate("trade", "卖出股数:"))
self.label_10.setText(_translate("trade", "名称:"))
self.pushButton_buycommit.setText(_translate("trade", "买入确定"))
self.pushButton_sellcommit.setText(_translate("trade", "卖出确定"))
self.pushButton_buyclear.setText(_translate("trade", "重填"))
self.pushButton_sellclear.setText(_translate("trade", "重填"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.haveaount), _translate("trade", "持仓"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.commited), _translate("trade", "委托"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.myuseselect), _translate("trade", "自选股"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.traderecord), _translate("trade", "交易记录"))
self.label_bank.setText(_translate("trade", "板块:"))
self.label_11.setText(_translate("trade", "卖5:"))
self.label_12.setText(_translate("trade", "卖4:"))
self.label_13.setText(_translate("trade", "卖3:"))
self.label_14.setText(_translate("trade", "卖2:"))
self.label_15.setText(_translate("trade", "卖1:"))
self.label_21.setText(_translate("trade", "现价:"))
self.label_22.setText(_translate("trade", "涨幅:"))
self.label_16.setText(_translate("trade", "买1:"))
self.label_18.setText(_translate("trade", "买2:"))
self.label_19.setText(_translate("trade", "买3:"))
self.label_17.setText(_translate("trade", "买4:"))
self.label_20.setText(_translate("trade", "买5:"))
self.label_23.setText(_translate("trade", "涨停:"))
self.label_24.setText(_translate("trade", "跌停:"))
self.label_40.setText(_translate("trade", "委比:"))
self.label_41.setText(_translate("trade", "委差:"))
self.label_sumamount.setText(_translate("trade", "成交额亿:"))
self.label_sumvol.setText(_translate("trade", "成交量万手:"))
self.label_acountAmount.setText(_translate("trade", "账户资金:"))
self.label_acountbeused.setText(_translate("trade", "可用余额:"))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/azhg/TDXPystock.git
git@gitee.com:azhg/TDXPystock.git
azhg
TDXPystock
TDXPystock
master

搜索帮助