Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mirrorSimulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李远洪
mirrorSimulator
Commits
15195dc2
Commit
15195dc2
authored
Jan 05, 2021
by
liyuanhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了视频和音频日志开开关
parent
22430a59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
ui/CameraArea.py
ui/CameraArea.py
+26
-0
No files found.
ui/CameraArea.py
View file @
15195dc2
...
@@ -155,6 +155,12 @@ class CameraArea():
...
@@ -155,6 +155,12 @@ class CameraArea():
connectButton
=
wx
.
Button
(
ctrPanel
,
label
=
"清空日志"
,
pos
=
(
5
,
5
))
connectButton
=
wx
.
Button
(
ctrPanel
,
label
=
"清空日志"
,
pos
=
(
5
,
5
))
self
.
frame
.
Bind
(
wx
.
EVT_BUTTON
,
lambda
evt
:
self
.
clearLog
(
evt
),
self
.
frame
.
Bind
(
wx
.
EVT_BUTTON
,
lambda
evt
:
self
.
clearLog
(
evt
),
connectButton
)
connectButton
)
isVideoLogOpenCombox
=
wx
.
ComboBox
(
ctrPanel
,
pos
=
(
90
,
5
),
choices
=
[
'视频日志(关)'
,
'视频日志(开)'
],
value
=
"视频日志(关)"
,
size
=
wx
.
Size
(
110
,
-
1
))
self
.
frame
.
Bind
(
wx
.
EVT_COMBOBOX
,
lambda
evt
:
self
.
isVideoLogOpenChange
(
evt
),
isVideoLogOpenCombox
)
isAudioLogOpenCombox
=
wx
.
ComboBox
(
ctrPanel
,
pos
=
(
210
,
5
),
choices
=
[
'音频日志(关)'
,
'音频日志(开)'
],
value
=
"音频日志(关)"
,
size
=
wx
.
Size
(
110
,
-
1
))
self
.
frame
.
Bind
(
wx
.
EVT_COMBOBOX
,
lambda
evt
:
self
.
isAudioLogOpenChange
(
evt
),
isAudioLogOpenCombox
)
boxSizer_ctrArea
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
boxSizer_ctrArea
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
boxSizer_ctrArea
.
Add
(
ctrText
,
2
,
flag
=
wx
.
EXPAND
|
wx
.
TOP
,
border
=
10
)
boxSizer_ctrArea
.
Add
(
ctrText
,
2
,
flag
=
wx
.
EXPAND
|
wx
.
TOP
,
border
=
10
)
boxSizer_ctrArea
.
Add
(
ctrPanel
,
100
,
flag
=
wx
.
EXPAND
|
wx
.
ALL
)
boxSizer_ctrArea
.
Add
(
ctrPanel
,
100
,
flag
=
wx
.
EXPAND
|
wx
.
ALL
)
...
@@ -459,4 +465,24 @@ class CameraArea():
...
@@ -459,4 +465,24 @@ class CameraArea():
m_command
=
[
"ffplay"
,
url
]
m_command
=
[
"ffplay"
,
url
]
subprocess
.
run
(
m_command
)
subprocess
.
run
(
m_command
)
####################################################
# 控制是否显示视频日志
###################################################
def
isVideoLogOpenChange
(
self
,
evt
):
val
=
evt
.
GetEventObject
()
.
GetValue
()
if
val
==
"视频日志(开)"
:
self
.
pushObj
.
setIsOpenVideoLog
(
1
)
else
:
self
.
pushObj
.
setIsOpenVideoLog
(
0
)
####################################################
# 控制是否显示音频日志
###################################################
def
isAudioLogOpenChange
(
self
,
evt
):
val
=
evt
.
GetEventObject
()
.
GetValue
()
if
val
==
"音频日志(开)"
:
self
.
pushObj
.
setIsOpenAudioLog
(
1
)
else
:
self
.
pushObj
.
setIsOpenAudioLog
(
0
)
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