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
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
operation_dialog.py
operation_dialog.py
+13
-3
operation_dialog.ui
operation_dialog.ui
+1
-8
operation_dialog_ui.py
operation_dialog_ui.py
+0
-0
No files found.
operation_dialog.py
View file @
d7001002
...
...
@@ -66,9 +66,13 @@ class Operation_Dialog(QDialog, Ui_Dialog):
return
self
.
set_all_user_component_status
(
True
)
self
.
pickStartPos
.
setEnabled
(
True
)
self
.
pickEndPos
.
setEnabled
(
True
)
self
.
pushButton_3
.
setEnabled
(
True
)
if
self
.
comboBox
.
currentText
()
==
"字幕"
:
self
.
lineEdit_5
.
setEnabled
(
False
)
self
.
lineEdit_6
.
setEnabled
(
False
)
self
.
comboBox_3
.
setEnabled
(
False
)
else
:
self
.
timeEdit_2
.
setEnabled
(
False
)
self
.
lineEdit_4
.
setEnabled
(
False
)
...
...
@@ -88,6 +92,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
def
remake_slot
(
self
):
self
.
buttonBox
.
setEnabled
(
False
)
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
):
# 校验行数
...
...
@@ -186,6 +193,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
self
.
mainWindow
.
prompt_dialog
.
show_with_msg
(
"校验成功!!"
)
self
.
buttonBox
.
setEnabled
(
True
)
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
):
for
lineEdit
in
self
.
lineEdits
:
...
...
@@ -194,9 +204,9 @@ class Operation_Dialog(QDialog, Ui_Dialog):
timeEdit
.
setEnabled
(
status
)
self
.
comboBox
.
setEnabled
(
status
)
self
.
comboBox_2
.
setEnabled
(
status
)
self
.
comboBox_3
.
setEnabled
(
status
)
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
]
row
,
subtitle
,
suggest
,
aside
=
[
x
.
text
()
for
x
in
self
.
lineEdits
]
...
...
@@ -214,13 +224,13 @@ class Operation_Dialog(QDialog, Ui_Dialog):
end_time
=
""
subtitle
=
""
suggest
=
"插入旁白,推荐字数为"
+
suggest
if
self
.
comboBox_2
.
currentText
()
==
"增加一行"
:
suggest
=
"插入旁白,推荐字数为0"
# 别忘复原
self
.
buttonBox
.
setEnabled
(
False
)
self
.
zmpb_change_slot
()
self
.
adddel_change_slot
()
print
(
suggest
)
# 根据增删两种操作,分别触发不同信号。
if
self
.
comboBox_2
.
currentText
()
==
"增加一行"
:
...
...
operation_dialog.ui
View file @
d7001002
...
...
@@ -6,7 +6,7 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
7
11
</width>
<width>
7
24
</width>
<height>
502
</height>
</rect>
</property>
...
...
@@ -110,13 +110,6 @@
</property>
</widget>
</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"
>
<widget
class=
"QLineEdit"
name=
"lineEdit_6"
>
<property
name=
"enabled"
>
...
...
operation_dialog_ui.py
View file @
d7001002
This diff is collapsed.
Click to expand it.
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