Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
accessibility_movie_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵心治
accessibility_movie_2
Commits
d7001002
Commit
d7001002
authored
Nov 16, 2022
by
xuanweiace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upd 操作表格
parent
7d56c09a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
107 deletions
+97
-107
operation_dialog.py
operation_dialog.py
+13
-3
operation_dialog.ui
operation_dialog.ui
+1
-8
operation_dialog_ui.py
operation_dialog_ui.py
+83
-96
No files found.
operation_dialog.py
View file @
d7001002
...
@@ -66,9 +66,13 @@ class Operation_Dialog(QDialog, Ui_Dialog):
...
@@ -66,9 +66,13 @@ class Operation_Dialog(QDialog, Ui_Dialog):
return
return
self
.
set_all_user_component_status
(
True
)
self
.
set_all_user_component_status
(
True
)
self
.
pickStartPos
.
setEnabled
(
True
)
self
.
pickEndPos
.
setEnabled
(
True
)
self
.
pushButton_3
.
setEnabled
(
True
)
if
self
.
comboBox
.
currentText
()
==
"字幕"
:
if
self
.
comboBox
.
currentText
()
==
"字幕"
:
self
.
lineEdit_5
.
setEnabled
(
False
)
self
.
lineEdit_5
.
setEnabled
(
False
)
self
.
lineEdit_6
.
setEnabled
(
False
)
self
.
lineEdit_6
.
setEnabled
(
False
)
self
.
comboBox_3
.
setEnabled
(
False
)
else
:
else
:
self
.
timeEdit_2
.
setEnabled
(
False
)
self
.
timeEdit_2
.
setEnabled
(
False
)
self
.
lineEdit_4
.
setEnabled
(
False
)
self
.
lineEdit_4
.
setEnabled
(
False
)
...
@@ -88,6 +92,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
...
@@ -88,6 +92,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
def
remake_slot
(
self
):
def
remake_slot
(
self
):
self
.
buttonBox
.
setEnabled
(
False
)
self
.
buttonBox
.
setEnabled
(
False
)
self
.
set_all_user_component_status
(
True
)
self
.
set_all_user_component_status
(
True
)
self
.
pickStartPos
.
setEnabled
(
True
)
self
.
pickEndPos
.
setEnabled
(
True
)
self
.
pushButton_3
.
setEnabled
(
False
)
def
check_validate_slot
(
self
):
def
check_validate_slot
(
self
):
# 校验行数
# 校验行数
...
@@ -186,6 +193,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
...
@@ -186,6 +193,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
self
.
mainWindow
.
prompt_dialog
.
show_with_msg
(
"校验成功!!"
)
self
.
mainWindow
.
prompt_dialog
.
show_with_msg
(
"校验成功!!"
)
self
.
buttonBox
.
setEnabled
(
True
)
self
.
buttonBox
.
setEnabled
(
True
)
self
.
set_all_user_component_status
(
False
)
self
.
set_all_user_component_status
(
False
)
self
.
pickStartPos
.
setEnabled
(
False
)
self
.
pickEndPos
.
setEnabled
(
False
)
self
.
pushButton_3
.
setEnabled
(
False
)
def
set_all_user_component_status
(
self
,
status
:
bool
):
def
set_all_user_component_status
(
self
,
status
:
bool
):
for
lineEdit
in
self
.
lineEdits
:
for
lineEdit
in
self
.
lineEdits
:
...
@@ -194,9 +204,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
...
@@ -194,9 +204,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
timeEdit
.
setEnabled
(
status
)
timeEdit
.
setEnabled
(
status
)
self
.
comboBox
.
setEnabled
(
status
)
self
.
comboBox
.
setEnabled
(
status
)
self
.
comboBox_2
.
setEnabled
(
status
)
self
.
comboBox_2
.
setEnabled
(
status
)
self
.
comboBox_3
.
setEnabled
(
status
)
def
start_operation_slot
(
self
):
def
start_operation_slot
(
self
):
print
(
"operation 触发"
)
start_time
,
end_time
=
[
"
%02
d:
%02
d:
%02
d.
%03
d"
%
(
x
.
time
()
.
hour
(),
x
.
time
()
.
minute
(),
x
.
time
()
.
second
(),
x
.
time
()
.
msec
())
for
x
in
self
.
timeEdits
]
start_time
,
end_time
=
[
"
%02
d:
%02
d:
%02
d.
%03
d"
%
(
x
.
time
()
.
hour
(),
x
.
time
()
.
minute
(),
x
.
time
()
.
second
(),
x
.
time
()
.
msec
())
for
x
in
self
.
timeEdits
]
row
,
subtitle
,
suggest
,
aside
=
[
row
,
subtitle
,
suggest
,
aside
=
[
x
.
text
()
for
x
in
self
.
lineEdits
]
x
.
text
()
for
x
in
self
.
lineEdits
]
...
@@ -214,13 +224,13 @@ class Operation_Dialog(QDialog, Ui_Dialog):
...
@@ -214,13 +224,13 @@ class Operation_Dialog(QDialog, Ui_Dialog):
end_time
=
""
end_time
=
""
subtitle
=
""
subtitle
=
""
suggest
=
"插入旁白,推荐字数为"
+
suggest
suggest
=
"插入旁白,推荐字数为"
+
suggest
if
self
.
comboBox_2
.
currentText
()
==
"增加一行"
:
suggest
=
"插入旁白,推荐字数为0"
# 别忘复原
# 别忘复原
self
.
buttonBox
.
setEnabled
(
False
)
self
.
buttonBox
.
setEnabled
(
False
)
self
.
zmpb_change_slot
()
self
.
zmpb_change_slot
()
self
.
adddel_change_slot
()
self
.
adddel_change_slot
()
print
(
suggest
)
# 根据增删两种操作,分别触发不同信号。
# 根据增删两种操作,分别触发不同信号。
if
self
.
comboBox_2
.
currentText
()
==
"增加一行"
:
if
self
.
comboBox_2
.
currentText
()
==
"增加一行"
:
...
...
operation_dialog.ui
View file @
d7001002
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<rect>
<rect>
<x>
0
</x>
<x>
0
</x>
<y>
0
</y>
<y>
0
</y>
<width>
7
11
</width>
<width>
7
24
</width>
<height>
502
</height>
<height>
502
</height>
</rect>
</rect>
</property>
</property>
...
@@ -110,13 +110,6 @@
...
@@ -110,13 +110,6 @@
</property>
</property>
</widget>
</widget>
</item>
</item>
<item
row=
"5"
column=
"2"
>
<widget
class=
"QLabel"
name=
"label_12"
>
<property
name=
"text"
>
<string>
*请填数字,必须是不超过100的正整数
</string>
</property>
</widget>
</item>
<item
row=
"6"
column=
"1"
>
<item
row=
"6"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"lineEdit_6"
>
<widget
class=
"QLineEdit"
name=
"lineEdit_6"
>
<property
name=
"enabled"
>
<property
name=
"enabled"
>
...
...
operation_dialog_ui.py
View file @
d7001002
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '
d:\AddCaption\cur_version\accessibility_movie_2\
operation_dialog.ui'
# Form implementation generated from reading ui file 'operation_dialog.ui'
#
#
# Created by: PyQt5 UI code generator 5.1
5.4
# Created by: PyQt5 UI code generator 5.1
2
#
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# WARNING! All changes made in this file will be lost!
# run again. Do not edit this file unless you know what you are doing.
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
...
@@ -14,20 +12,52 @@ from PyQt5 import QtCore, QtGui, QtWidgets
...
@@ -14,20 +12,52 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class
Ui_Dialog
(
object
):
class
Ui_Dialog
(
object
):
def
setupUi
(
self
,
Dialog
):
def
setupUi
(
self
,
Dialog
):
Dialog
.
setObjectName
(
"Dialog"
)
Dialog
.
setObjectName
(
"Dialog"
)
Dialog
.
resize
(
7
11
,
502
)
Dialog
.
resize
(
7
24
,
437
)
self
.
gridLayout
=
QtWidgets
.
QGridLayout
(
Dialog
)
self
.
gridLayout
=
QtWidgets
.
QGridLayout
(
Dialog
)
self
.
gridLayout
.
setObjectName
(
"gridLayout"
)
self
.
gridLayout
.
setObjectName
(
"gridLayout"
)
self
.
label_1
1
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_1
4
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_1
1
.
setObjectName
(
"label_11
"
)
self
.
label_1
4
.
setObjectName
(
"label_14
"
)
self
.
gridLayout
.
addWidget
(
self
.
label_1
1
,
6
,
2
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
label_1
4
,
5
,
3
,
1
,
1
)
self
.
comboBox_3
=
QtWidgets
.
QComboBox
(
Dialog
)
self
.
comboBox_3
=
QtWidgets
.
QComboBox
(
Dialog
)
self
.
comboBox_3
.
setEnabled
(
True
)
self
.
comboBox_3
.
setEnabled
(
True
)
self
.
comboBox_3
.
setEditable
(
False
)
self
.
comboBox_3
.
setEditable
(
False
)
self
.
comboBox_3
.
setObjectName
(
"comboBox_3"
)
self
.
comboBox_3
.
setObjectName
(
"comboBox_3"
)
self
.
gridLayout
.
addWidget
(
self
.
comboBox_3
,
6
,
4
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
comboBox_3
,
5
,
4
,
1
,
1
)
self
.
label_11
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_11
.
setObjectName
(
"label_11"
)
self
.
gridLayout
.
addWidget
(
self
.
label_11
,
5
,
2
,
1
,
1
)
self
.
label_9
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_9
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_9
.
setObjectName
(
"label_9"
)
self
.
label_9
.
setObjectName
(
"label_9"
)
self
.
gridLayout
.
addWidget
(
self
.
label_9
,
3
,
2
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
label_9
,
3
,
2
,
1
,
1
)
self
.
lineEdit_6
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit_6
.
setEnabled
(
True
)
self
.
lineEdit_6
.
setObjectName
(
"lineEdit_6"
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit_6
,
5
,
1
,
1
,
1
)
self
.
lineEdit_4
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit_4
.
setEnabled
(
True
)
self
.
lineEdit_4
.
setObjectName
(
"lineEdit_4"
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit_4
,
4
,
1
,
1
,
1
)
self
.
pickEndPos
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pickEndPos
.
setObjectName
(
"pickEndPos"
)
self
.
gridLayout
.
addWidget
(
self
.
pickEndPos
,
3
,
3
,
1
,
1
)
self
.
pickStartPos
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pickStartPos
.
setObjectName
(
"pickStartPos"
)
self
.
gridLayout
.
addWidget
(
self
.
pickStartPos
,
2
,
3
,
1
,
1
)
self
.
label_4
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_4
.
setObjectName
(
"label_4"
)
self
.
gridLayout
.
addWidget
(
self
.
label_4
,
3
,
0
,
1
,
1
)
self
.
label
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label
.
setObjectName
(
"label"
)
self
.
gridLayout
.
addWidget
(
self
.
label
,
1
,
0
,
1
,
1
)
self
.
pushButton_3
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton_3
.
setObjectName
(
"pushButton_3"
)
self
.
gridLayout
.
addWidget
(
self
.
pushButton_3
,
1
,
3
,
1
,
2
)
self
.
label_3
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_3
.
setObjectName
(
"label_3"
)
self
.
gridLayout
.
addWidget
(
self
.
label_3
,
2
,
0
,
1
,
1
)
self
.
label_8
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_8
.
setObjectName
(
"label_8"
)
self
.
gridLayout
.
addWidget
(
self
.
label_8
,
2
,
2
,
1
,
1
)
self
.
verticalLayout
=
QtWidgets
.
QVBoxLayout
()
self
.
verticalLayout
=
QtWidgets
.
QVBoxLayout
()
self
.
verticalLayout
.
setObjectName
(
"verticalLayout"
)
self
.
verticalLayout
.
setObjectName
(
"verticalLayout"
)
self
.
label_2
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_2
=
QtWidgets
.
QLabel
(
Dialog
)
...
@@ -40,44 +70,9 @@ class Ui_Dialog(object):
...
@@ -40,44 +70,9 @@ class Ui_Dialog(object):
self
.
label_13
.
setObjectName
(
"label_13"
)
self
.
label_13
.
setObjectName
(
"label_13"
)
self
.
verticalLayout
.
addWidget
(
self
.
label_13
)
self
.
verticalLayout
.
addWidget
(
self
.
label_13
)
self
.
gridLayout
.
addLayout
(
self
.
verticalLayout
,
1
,
2
,
1
,
1
)
self
.
gridLayout
.
addLayout
(
self
.
verticalLayout
,
1
,
2
,
1
,
1
)
self
.
label_4
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_4
.
setObjectName
(
"label_4"
)
self
.
gridLayout
.
addWidget
(
self
.
label_4
,
3
,
0
,
1
,
1
)
self
.
pickStartPos
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pickStartPos
.
setObjectName
(
"pickStartPos"
)
self
.
gridLayout
.
addWidget
(
self
.
pickStartPos
,
2
,
3
,
1
,
1
)
self
.
label_10
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_10
.
setObjectName
(
"label_10"
)
self
.
gridLayout
.
addWidget
(
self
.
label_10
,
4
,
2
,
1
,
1
)
self
.
label_14
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_14
.
setObjectName
(
"label_14"
)
self
.
gridLayout
.
addWidget
(
self
.
label_14
,
6
,
3
,
1
,
1
)
self
.
label_7
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_7
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_7
.
setObjectName
(
"label_7"
)
self
.
label_7
.
setObjectName
(
"label_7"
)
self
.
gridLayout
.
addWidget
(
self
.
label_7
,
6
,
0
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
label_7
,
5
,
0
,
1
,
1
)
self
.
label_3
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_3
.
setObjectName
(
"label_3"
)
self
.
gridLayout
.
addWidget
(
self
.
label_3
,
2
,
0
,
1
,
1
)
self
.
pickEndPos
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pickEndPos
.
setObjectName
(
"pickEndPos"
)
self
.
gridLayout
.
addWidget
(
self
.
pickEndPos
,
3
,
3
,
1
,
1
)
self
.
label_12
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_12
.
setObjectName
(
"label_12"
)
self
.
gridLayout
.
addWidget
(
self
.
label_12
,
5
,
2
,
1
,
1
)
self
.
lineEdit_6
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit_6
.
setEnabled
(
True
)
self
.
lineEdit_6
.
setObjectName
(
"lineEdit_6"
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit_6
,
6
,
1
,
1
,
1
)
self
.
lineEdit_4
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit_4
.
setEnabled
(
True
)
self
.
lineEdit_4
.
setObjectName
(
"lineEdit_4"
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit_4
,
4
,
1
,
1
,
1
)
self
.
label
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label
.
setObjectName
(
"label"
)
self
.
gridLayout
.
addWidget
(
self
.
label
,
1
,
0
,
1
,
1
)
self
.
pushButton_3
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton_3
.
setObjectName
(
"pushButton_3"
)
self
.
gridLayout
.
addWidget
(
self
.
pushButton_3
,
1
,
3
,
1
,
2
)
self
.
buttonBox
=
QtWidgets
.
QDialogButtonBox
(
Dialog
)
self
.
buttonBox
=
QtWidgets
.
QDialogButtonBox
(
Dialog
)
self
.
buttonBox
.
setEnabled
(
False
)
self
.
buttonBox
.
setEnabled
(
False
)
sizePolicy
=
QtWidgets
.
QSizePolicy
(
QtWidgets
.
QSizePolicy
.
Minimum
,
QtWidgets
.
QSizePolicy
.
Fixed
)
sizePolicy
=
QtWidgets
.
QSizePolicy
(
QtWidgets
.
QSizePolicy
.
Minimum
,
QtWidgets
.
QSizePolicy
.
Fixed
)
...
@@ -92,31 +87,10 @@ class Ui_Dialog(object):
...
@@ -92,31 +87,10 @@ class Ui_Dialog(object):
self
.
buttonBox
.
setStandardButtons
(
QtWidgets
.
QDialogButtonBox
.
Ok
)
self
.
buttonBox
.
setStandardButtons
(
QtWidgets
.
QDialogButtonBox
.
Ok
)
self
.
buttonBox
.
setCenterButtons
(
False
)
self
.
buttonBox
.
setCenterButtons
(
False
)
self
.
buttonBox
.
setObjectName
(
"buttonBox"
)
self
.
buttonBox
.
setObjectName
(
"buttonBox"
)
self
.
gridLayout
.
addWidget
(
self
.
buttonBox
,
8
,
4
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
buttonBox
,
7
,
4
,
1
,
1
)
self
.
label_8
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_10
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_8
.
setObjectName
(
"label_8"
)
self
.
label_10
.
setObjectName
(
"label_10"
)
self
.
gridLayout
.
addWidget
(
self
.
label_8
,
2
,
2
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
label_10
,
4
,
2
,
1
,
1
)
self
.
horizontalLayout_2
=
QtWidgets
.
QHBoxLayout
()
self
.
horizontalLayout_2
.
setContentsMargins
(
-
1
,
0
,
-
1
,
-
1
)
self
.
horizontalLayout_2
.
setObjectName
(
"horizontalLayout_2"
)
self
.
pushButton_2
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton_2
.
setObjectName
(
"pushButton_2"
)
self
.
horizontalLayout_2
.
addWidget
(
self
.
pushButton_2
)
spacerItem
=
QtWidgets
.
QSpacerItem
(
40
,
20
,
QtWidgets
.
QSizePolicy
.
Expanding
,
QtWidgets
.
QSizePolicy
.
Minimum
)
self
.
horizontalLayout_2
.
addItem
(
spacerItem
)
self
.
pushButton
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton
.
setObjectName
(
"pushButton"
)
self
.
horizontalLayout_2
.
addWidget
(
self
.
pushButton
)
self
.
horizontalLayout_2
.
setStretch
(
0
,
1
)
self
.
horizontalLayout_2
.
setStretch
(
1
,
1
)
self
.
horizontalLayout_2
.
setStretch
(
2
,
1
)
self
.
gridLayout
.
addLayout
(
self
.
horizontalLayout_2
,
8
,
1
,
1
,
2
)
self
.
label_6
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_6
.
setObjectName
(
"label_6"
)
self
.
gridLayout
.
addWidget
(
self
.
label_6
,
5
,
0
,
1
,
1
)
self
.
label_5
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_5
.
setObjectName
(
"label_5"
)
self
.
gridLayout
.
addWidget
(
self
.
label_5
,
4
,
0
,
1
,
1
)
self
.
horizontalLayout
=
QtWidgets
.
QHBoxLayout
()
self
.
horizontalLayout
=
QtWidgets
.
QHBoxLayout
()
self
.
horizontalLayout
.
setObjectName
(
"horizontalLayout"
)
self
.
horizontalLayout
.
setObjectName
(
"horizontalLayout"
)
self
.
comboBox
=
QtWidgets
.
QComboBox
(
Dialog
)
self
.
comboBox
=
QtWidgets
.
QComboBox
(
Dialog
)
...
@@ -126,29 +100,42 @@ class Ui_Dialog(object):
...
@@ -126,29 +100,42 @@ class Ui_Dialog(object):
self
.
comboBox
.
addItem
(
""
)
self
.
comboBox
.
addItem
(
""
)
self
.
comboBox
.
addItem
(
""
)
self
.
comboBox
.
addItem
(
""
)
self
.
horizontalLayout
.
addWidget
(
self
.
comboBox
)
self
.
horizontalLayout
.
addWidget
(
self
.
comboBox
)
spacerItem
1
=
QtWidgets
.
QSpacerItem
(
40
,
20
,
QtWidgets
.
QSizePolicy
.
Expanding
,
QtWidgets
.
QSizePolicy
.
Minimum
)
spacerItem
=
QtWidgets
.
QSpacerItem
(
40
,
20
,
QtWidgets
.
QSizePolicy
.
Expanding
,
QtWidgets
.
QSizePolicy
.
Minimum
)
self
.
horizontalLayout
.
addItem
(
spacerItem
1
)
self
.
horizontalLayout
.
addItem
(
spacerItem
)
self
.
horizontalLayout
.
setStretch
(
0
,
1
)
self
.
horizontalLayout
.
setStretch
(
0
,
1
)
self
.
horizontalLayout
.
setStretch
(
1
,
1
)
self
.
horizontalLayout
.
setStretch
(
1
,
1
)
self
.
gridLayout
.
addLayout
(
self
.
horizontalLayout
,
0
,
1
,
1
,
1
)
self
.
gridLayout
.
addLayout
(
self
.
horizontalLayout
,
0
,
1
,
1
,
1
)
self
.
label_5
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_5
.
setObjectName
(
"label_5"
)
self
.
gridLayout
.
addWidget
(
self
.
label_5
,
4
,
0
,
1
,
1
)
self
.
timeEdit
=
QtWidgets
.
QTimeEdit
(
Dialog
)
self
.
timeEdit
.
setCurrentSection
(
QtWidgets
.
QDateTimeEdit
.
MinuteSection
)
self
.
timeEdit
.
setCurrentSectionIndex
(
1
)
self
.
timeEdit
.
setObjectName
(
"timeEdit"
)
self
.
gridLayout
.
addWidget
(
self
.
timeEdit
,
2
,
1
,
1
,
1
)
self
.
horizontalLayout_2
=
QtWidgets
.
QHBoxLayout
()
self
.
horizontalLayout_2
.
setContentsMargins
(
-
1
,
0
,
-
1
,
-
1
)
self
.
horizontalLayout_2
.
setObjectName
(
"horizontalLayout_2"
)
self
.
pushButton_2
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton_2
.
setObjectName
(
"pushButton_2"
)
self
.
horizontalLayout_2
.
addWidget
(
self
.
pushButton_2
)
spacerItem1
=
QtWidgets
.
QSpacerItem
(
40
,
20
,
QtWidgets
.
QSizePolicy
.
Expanding
,
QtWidgets
.
QSizePolicy
.
Minimum
)
self
.
horizontalLayout_2
.
addItem
(
spacerItem1
)
self
.
pushButton
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton
.
setObjectName
(
"pushButton"
)
self
.
horizontalLayout_2
.
addWidget
(
self
.
pushButton
)
self
.
horizontalLayout_2
.
setStretch
(
0
,
1
)
self
.
horizontalLayout_2
.
setStretch
(
1
,
1
)
self
.
gridLayout
.
addLayout
(
self
.
horizontalLayout_2
,
7
,
1
,
1
,
2
)
self
.
comboBox_2
=
QtWidgets
.
QComboBox
(
Dialog
)
self
.
comboBox_2
=
QtWidgets
.
QComboBox
(
Dialog
)
self
.
comboBox_2
.
setObjectName
(
"comboBox_2"
)
self
.
comboBox_2
.
setObjectName
(
"comboBox_2"
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
gridLayout
.
addWidget
(
self
.
comboBox_2
,
0
,
2
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
comboBox_2
,
0
,
2
,
1
,
1
)
self
.
lineEdit_5
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit_5
.
setEnabled
(
True
)
self
.
lineEdit_5
.
setObjectName
(
"lineEdit_5"
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit_5
,
5
,
1
,
1
,
1
)
self
.
lineEdit
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit
=
QtWidgets
.
QLineEdit
(
Dialog
)
self
.
lineEdit
.
setObjectName
(
"lineEdit"
)
self
.
lineEdit
.
setObjectName
(
"lineEdit"
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit
,
1
,
1
,
1
,
1
)
self
.
gridLayout
.
addWidget
(
self
.
lineEdit
,
1
,
1
,
1
,
1
)
self
.
timeEdit
=
QtWidgets
.
QTimeEdit
(
Dialog
)
self
.
timeEdit
.
setCurrentSection
(
QtWidgets
.
QDateTimeEdit
.
SecondSection
)
self
.
timeEdit
.
setCurrentSectionIndex
(
2
)
self
.
timeEdit
.
setObjectName
(
"timeEdit"
)
self
.
gridLayout
.
addWidget
(
self
.
timeEdit
,
2
,
1
,
1
,
1
)
self
.
timeEdit_2
=
QtWidgets
.
QTimeEdit
(
Dialog
)
self
.
timeEdit_2
=
QtWidgets
.
QTimeEdit
(
Dialog
)
self
.
timeEdit_2
.
setCurrentSection
(
QtWidgets
.
QDateTimeEdit
.
SecondSection
)
self
.
timeEdit_2
.
setCurrentSection
(
QtWidgets
.
QDateTimeEdit
.
SecondSection
)
self
.
timeEdit_2
.
setCurrentSectionIndex
(
2
)
self
.
timeEdit_2
.
setCurrentSectionIndex
(
2
)
...
@@ -161,30 +148,30 @@ class Ui_Dialog(object):
...
@@ -161,30 +148,30 @@ class Ui_Dialog(object):
def
retranslateUi
(
self
,
Dialog
):
def
retranslateUi
(
self
,
Dialog
):
_translate
=
QtCore
.
QCoreApplication
.
translate
_translate
=
QtCore
.
QCoreApplication
.
translate
Dialog
.
setWindowTitle
(
_translate
(
"Dialog"
,
"Dialog"
))
Dialog
.
setWindowTitle
(
_translate
(
"Dialog"
,
"Dialog"
))
self
.
label_14
.
setText
(
_translate
(
"Dialog"
,
"语速:"
))
self
.
label_11
.
setText
(
_translate
(
"Dialog"
,
"*请填文字"
))
self
.
label_11
.
setText
(
_translate
(
"Dialog"
,
"*请填文字"
))
self
.
label_9
.
setText
(
_translate
(
"Dialog"
,
"*请填数字,最多保留两位小数"
))
self
.
label_9
.
setText
(
_translate
(
"Dialog"
,
"*请填数字,最多保留两位小数"
))
self
.
label_2
.
setText
(
_translate
(
"Dialog"
,
"行(如果操作是增加,则在该行后面增加)"
))
self
.
label_13
.
setText
(
_translate
(
"Dialog"
,
"*需要填在【字幕旁白】页面中的行数"
))
self
.
label_4
.
setText
(
_translate
(
"Dialog"
,
"结束时间:"
))
self
.
pickStartPos
.
setText
(
_translate
(
"Dialog"
,
"取当前位置"
))
self
.
label_10
.
setText
(
_translate
(
"Dialog"
,
"*请填文字"
))
self
.
label_14
.
setText
(
_translate
(
"Dialog"
,
"语速:"
))
self
.
label_7
.
setText
(
_translate
(
"Dialog"
,
"旁白:"
))
self
.
label_3
.
setText
(
_translate
(
"Dialog"
,
"起始时间:"
))
self
.
pickEndPos
.
setText
(
_translate
(
"Dialog"
,
"取当前位置"
))
self
.
pickEndPos
.
setText
(
_translate
(
"Dialog"
,
"取当前位置"
))
self
.
label_12
.
setText
(
_translate
(
"Dialog"
,
"*请填数字,必须是不超过100的正整数"
))
self
.
pickStartPos
.
setText
(
_translate
(
"Dialog"
,
"取当前位置"
))
self
.
label_4
.
setText
(
_translate
(
"Dialog"
,
"结束时间:"
))
self
.
label
.
setText
(
_translate
(
"Dialog"
,
"我想操作第"
))
self
.
label
.
setText
(
_translate
(
"Dialog"
,
"我想操作第"
))
self
.
pushButton_3
.
setText
(
_translate
(
"Dialog"
,
"填充
\n
"
self
.
pushButton_3
.
setText
(
_translate
(
"Dialog"
,
"填充
\n
"
"行信息"
))
"行信息"
))
self
.
label_3
.
setText
(
_translate
(
"Dialog"
,
"起始时间:"
))
self
.
label_8
.
setText
(
_translate
(
"Dialog"
,
"*请填数字,最多保留两位小数"
))
self
.
label_8
.
setText
(
_translate
(
"Dialog"
,
"*请填数字,最多保留两位小数"
))
self
.
pushButton_2
.
setText
(
_translate
(
"Dialog"
,
"修改
"
))
self
.
label_2
.
setText
(
_translate
(
"Dialog"
,
"行(如果操作是增加,则在该行后面增加)
"
))
self
.
pushButton
.
setText
(
_translate
(
"Dialog"
,
"检测
"
))
self
.
label_13
.
setText
(
_translate
(
"Dialog"
,
"*需要填在【字幕旁白】页面中的行数
"
))
self
.
label_
6
.
setText
(
_translate
(
"Dialog"
,
"推荐字数
:"
))
self
.
label_
7
.
setText
(
_translate
(
"Dialog"
,
"旁白
:"
))
self
.
label_
5
.
setText
(
_translate
(
"Dialog"
,
"字幕:
"
))
self
.
label_
10
.
setText
(
_translate
(
"Dialog"
,
"*请填文字
"
))
self
.
comboBox
.
setItemText
(
0
,
_translate
(
"Dialog"
,
"字幕"
))
self
.
comboBox
.
setItemText
(
0
,
_translate
(
"Dialog"
,
"字幕"
))
self
.
comboBox
.
setItemText
(
1
,
_translate
(
"Dialog"
,
"旁白"
))
self
.
comboBox
.
setItemText
(
1
,
_translate
(
"Dialog"
,
"旁白"
))
self
.
label_5
.
setText
(
_translate
(
"Dialog"
,
"字幕:"
))
self
.
timeEdit
.
setDisplayFormat
(
_translate
(
"Dialog"
,
"hh:mm:ss.zzz"
))
self
.
pushButton_2
.
setText
(
_translate
(
"Dialog"
,
"修改"
))
self
.
pushButton
.
setText
(
_translate
(
"Dialog"
,
"检测"
))
self
.
comboBox_2
.
setItemText
(
0
,
_translate
(
"Dialog"
,
"增加一行"
))
self
.
comboBox_2
.
setItemText
(
0
,
_translate
(
"Dialog"
,
"增加一行"
))
self
.
comboBox_2
.
setItemText
(
1
,
_translate
(
"Dialog"
,
"修改一行"
))
self
.
comboBox_2
.
setItemText
(
1
,
_translate
(
"Dialog"
,
"修改一行"
))
self
.
comboBox_2
.
setItemText
(
2
,
_translate
(
"Dialog"
,
"删除一行"
))
self
.
comboBox_2
.
setItemText
(
2
,
_translate
(
"Dialog"
,
"删除一行"
))
self
.
timeEdit
.
setDisplayFormat
(
_translate
(
"Dialog"
,
"hh:mm:ss.zzz"
))
self
.
timeEdit_2
.
setDisplayFormat
(
_translate
(
"Dialog"
,
"hh:mm:ss.zzz"
))
self
.
timeEdit_2
.
setDisplayFormat
(
_translate
(
"Dialog"
,
"hh:mm:ss.zzz"
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment