dlg_main.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- coding: utf-8 -*-
  2. """
  3. /***************************************************************************
  4. MnCheckDialog
  5. A QGIS plugin
  6. Contrôle des données FTTH format MN
  7. Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
  8. -------------------
  9. begin : 2018-12-07
  10. git sha : $Format:%H$
  11. copyright : (C) 2018 by Manche Numérique 2019
  12. email : olivier.massot@manchenumerique.fr
  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. import os
  24. from PyQt5 import uic
  25. from PyQt5 import QtWidgets
  26. FORM_CLASS, _ = uic.loadUiType(os.path.join(
  27. os.path.dirname(__file__), 'mncheck_dialog_base.ui'))
  28. class DlgMain(QtWidgets.QDialog, FORM_CLASS):
  29. def __init__(self, parent=None):
  30. """Constructor."""
  31. super(DlgMain, self).__init__(parent)
  32. # Set up the user interface from Designer.
  33. # After setupUI you can access any designer object by doing
  34. # self.<objectname>, and you can use autoconnect slots - see
  35. # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
  36. # #widgets-and-dialogs-with-auto-connect
  37. self.setupUi(self)