Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1899 from vnpy/dev
Browse files Browse the repository at this point in the history
[Add] clear_button to clear log monitor
  • Loading branch information
vnpy committed Jul 3, 2019
2 parents 4f9bf08 + 82dd0d0 commit d03f0a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vnpy/app/script_trader/ui/widget.py
Expand Up @@ -44,11 +44,16 @@ def init_ui(self):
self.log_monitor = QtWidgets.QTextEdit()
self.log_monitor.setReadOnly(True)

clear_button = QtWidgets.QPushButton("清空")
clear_button.clicked.connect(self.log_monitor.clear)

hbox = QtWidgets.QHBoxLayout()
hbox.addWidget(self.strategy_line)
hbox.addWidget(select_button)
hbox.addWidget(start_button)
hbox.addWidget(stop_button)
hbox.addStretch()
hbox.addWidget(clear_button)

vbox = QtWidgets.QVBoxLayout()
vbox.addLayout(hbox)
Expand Down

0 comments on commit d03f0a4

Please sign in to comment.