Implemented new locate button.
This commit is contained in:
parent
17e9f8b5fe
commit
0a54e627eb
@ -25,7 +25,6 @@ https://www.iconfinder.com/iconsets/flavour
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import matplotlib
|
import matplotlib
|
||||||
|
|
||||||
matplotlib.use('Qt4Agg')
|
matplotlib.use('Qt4Agg')
|
||||||
@ -191,10 +190,9 @@ class MainWindow(QMainWindow):
|
|||||||
auto_icon = QIcon()
|
auto_icon = QIcon()
|
||||||
auto_icon.addPixmap(QPixmap(':/icons/sync.png'))
|
auto_icon.addPixmap(QPixmap(':/icons/sync.png'))
|
||||||
locate_icon = QIcon()
|
locate_icon = QIcon()
|
||||||
locate_icon.addPixmap(QPixmap(':/icons/locate.png'))
|
locate_icon.addPixmap(QPixmap(':/icons/locate_button.png'))
|
||||||
compare_icon = QIcon()
|
compare_icon = QIcon()
|
||||||
compare_icon.addPixmap(QPixmap(':/icons/compare.png'))
|
compare_icon.addPixmap(QPixmap(':/icons/compare.png'))
|
||||||
|
|
||||||
newEventAction = self.createAction(self, "&New event ...",
|
newEventAction = self.createAction(self, "&New event ...",
|
||||||
self.createNewEvent,
|
self.createNewEvent,
|
||||||
QKeySequence.New, newIcon,
|
QKeySequence.New, newIcon,
|
||||||
@ -347,8 +345,7 @@ class MainWindow(QMainWindow):
|
|||||||
# pickToolActions = (selectStation, )
|
# pickToolActions = (selectStation, )
|
||||||
# pickToolBar.setObjectName("PickTools")
|
# pickToolBar.setObjectName("PickTools")
|
||||||
# self.addActions(pickToolBar, pickToolActions)
|
# self.addActions(pickToolBar, pickToolActions)
|
||||||
|
locateEvent = self.createAction(parent=self, text='locate the event',
|
||||||
locateEvent = self.createAction(parent=self, text='locate_event',
|
|
||||||
slot=self.locate_event,
|
slot=self.locate_event,
|
||||||
shortcut='Alt+Ctrl+L',
|
shortcut='Alt+Ctrl+L',
|
||||||
icon=locate_icon,
|
icon=locate_icon,
|
||||||
|
Loading…
Reference in New Issue
Block a user