Graphics Reference
In-Depth Information
self.actionShowBasemapLayer =
QtGui.QAction("Basemap", window)
self.actionShowBasemapLayer.setShortcut("Ctrl+B")
self.actionShowBasemapLayer.setCheckable(True)
self.actionShowLandmarkLayer =
QtGui.QAction("Landmarks", window)
self.actionShowLandmarkLayer.setShortcut("Ctrl+L")
self.actionShowLandmarkLayer.setCheckable(True)
icon = QtGui.QIcon(":/icons/mActionZoomIn.png")
self.actionZoomIn = QtGui.QAction(icon, "Zoom In",
window)
self.actionZoomIn.setShortcut(QtGui.QKeySequence.ZoomIn)
icon = QtGui.QIcon(":/icons/mActionZoomOut.png")
self.actionZoomOut = QtGui.QAction(icon, "Zoom
Out", window)
self.actionZoomOut.setShortcut(QtGui.QKeySequence.ZoomOut)
icon = QtGui.QIcon(":/icons/mActionPan.png")
self.actionPan = QtGui.QAction(icon, "Pan", window)
self.actionPan.setShortcut("Ctrl+1")
self.actionPan.setCheckable(True)
icon = QtGui.QIcon(":/icons/mActionExplore.png")
self.actionExplore = QtGui.QAction(icon, "Explore",
window)
self.actionExplore.setShortcut("Ctrl+2")
self.actionExplore.setCheckable(True)
self.fileMenu.addAction(self.actionQuit)
self.viewMenu.addAction(self.actionShowBasemapLayer)
self.viewMenu.addAction(self.actionShowLandmarkLayer)
Search WWH ::




Custom Search