def run(self):

    dlg = PolygonizerDialog(self.iface)
    # show the dialog
    dlg.show()
    result = dlg.exec_()
    # See if OK was pressed
    if result == 1:
      # do something useful (delete the line containing pass and
      # substitute with your code
      pass
    def run(self):

        dlg = PolygonizerDialog(self.iface)
        # show the dialog
        dlg.show()
        result = dlg.exec_()
        # See if OK was pressed
        if result == 1:
            # do something useful (delete the line containing pass and
            # substitute with your code
            pass
示例#3
0
  def run(self):

    dlg = PolygonizerDialog(self.iface)
    
    #load line layers to ComboBox
    layerList = getLayersNames()
    if not layerList:
      QMessageBox.critical(None, 'Polygonizer', 'No line layers loaded into QGIS', buttons=QMessageBox.Ok)
      return
    dlg.ui.cmbLayer.addItems(layerList)
    
    # show the dialog
    dlg.show()
    result = dlg.exec_()
    # See if OK was pressed
    if result == 1:
      # do something useful (delete the line containing pass and
      # substitute with your code
      pass