⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 installer_plugin.py

📁 一个非常好的GIS开源新版本
💻 PY
字号:
"""Copyright (C) 2008 Matthew Perry/*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/"""from PyQt4.QtCore import *from PyQt4.QtGui import *from qgis.core import *from dialog import InstallerPluginGuiimport resourcesclass InstallerPlugin:  # ----------------------------------------- #  def __init__(self, iface):    # save reference to the QGIS interface    self.iface = iface  # ----------------------------------------- #  def initGui(self):    # create action that will start plugin configuration    self.action = QAction(QIcon(":/plugins/installer/icon.xpm"), "Install plugins", self.iface.getMainWindow())    self.action.setWhatsThis("Plugin Installer")    QObject.connect(self.action, SIGNAL("activated()"), self.run)    # add toolbar button and menu item    self.iface.addToolBarIcon(self.action)    self.iface.addPluginMenu("&Plugin Installer", self.action)  # ----------------------------------------- #  def unload(self):    # remove the plugin menu item and icon    self.iface.removePluginMenu("&Plugin Installer",self.action)    self.iface.removeToolBarIcon(self.action)  # ----------------------------------------- #  def run(self):    # create and show a configuration dialog     flags = Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMaximizeButtonHint     self.gui = InstallerPluginGui(self.iface.getMainWindow(),flags)    self.gui.show()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -