Advertisement
xunilk

average_raster_dialog.py

Aug 16th, 2015
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.85 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. /***************************************************************************
  4. AverageRasterDialog
  5.                                 A QGIS plugin
  6. This plugin calculates the average of a raster as active layer
  7.                             -------------------
  8.        begin                : 2015-08-15
  9.        git sha              : $Format:%H$
  10.        copyright            : (C) 2015 by Jose Guerrero
  11.        email                : joseguerreroa@gmail.com
  12. ***************************************************************************/
  13.  
  14. /***************************************************************************
  15. *                                                                         *
  16. *   This program is free software; you can redistribute it and/or modify  *
  17. *   it under the terms of the GNU General Public License as published by  *
  18. *   the Free Software Foundation; either version 2 of the License, or     *
  19. *   (at your option) any later version.                                   *
  20. *                                                                         *
  21. ***************************************************************************/
  22. """
  23.  
  24. import os
  25.  
  26. from PyQt4 import QtGui, uic
  27.  
  28. FORM_CLASS, _ = uic.loadUiType(os.path.join(
  29.     os.path.dirname(__file__), 'average_raster_dialog_base.ui'))
  30.  
  31.  
  32. class AverageRasterDialog(QtGui.QDialog, FORM_CLASS):
  33.     def __init__(self, parent=None):
  34.         """Constructor."""
  35.         super(AverageRasterDialog, self).__init__(parent)
  36.         # Set up the user interface from Designer.
  37.         # After setupUI you can access any designer object by doing
  38.         # self.<objectname>, and you can use autoconnect slots - see
  39.         # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
  40.         # #widgets-and-dialogs-with-auto-connect
  41.         self.setupUi(self)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement