forked from pw0300/Qgis_plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddfieldsgui.py
More file actions
37 lines (25 loc) · 1.01 KB
/
addfieldsgui.py
File metadata and controls
37 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from qgis.core import *
from ui_addfield import Ui_AddField
import os, sys
class AddFieldsGui(QDialog, QWidget, Ui_AddField):
inputsignal = pyqtSignal()
unsetTool = pyqtSignal()
def __init__(self, parent, flags):
QDialog.__init__(self, parent, flags)
self.setupUi(self)
self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)
self.cancelButton = self.buttonBox.button(QDialogButtonBox.Cancel)
self.cancelButton.clicked.connect(self.close_1)
#self.okButton.clicked.connect(self.Point)
self.lineEdit.clear()
def initGui(self):
self.lineEdit.clear()
pass
def select_input_file(self):
filename = QFileDialog.getOpenFileName(self, "Select input file ","", '*.csv')
self.lineEdit.setText(filename)
self.inputfile= self.lineEdit.text()
def close_1(self):
self.unsetTool.emit()