dlg_importMap (2).py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. """
  3. /***************************************************************************
  4. CartoDBDialog
  5. A QGIS plugin
  6. CartoDB plugin
  7. Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
  8. -------------------
  9. begin : 2019-03-19
  10. git sha : $Format:%H$
  11. copyright : (C) 2019 by Ondřej Tomančák, Jan Vrobel
  12. email : vrobel.jan@seznam.cz
  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. # This loads your .ui file so that PyQt can populate your plugin with the elements from Qt Designer
  27. FORM_CLASS, _ = uic.loadUiType(os.path.join(
  28. os.path.dirname(__file__), 'dlg_importLayer.ui'))
  29. class ImportLayerDialog(QtWidgets.QDialog, FORM_CLASS):
  30. def __init__(self, parent=None):
  31. """Constructor."""
  32. super(ImportLayerDialog, self).__init__(parent)
  33. # Set up the user interface from Designer through FORM_CLASS.
  34. # After self.setupUi() you can access any designer object by doing
  35. # self.<objectname>, and you can use autoconnect slots - see
  36. # http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
  37. # #widgets-and-dialogs-with-auto-connect
  38. self.setupUi(self)