-
Notifications
You must be signed in to change notification settings - Fork 0
/
surveyproperties.py
37 lines (25 loc) · 1.03 KB
/
surveyproperties.py
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 ui_surveypropertiesbase import Ui_SurveyPropertiesBase
class SurveyProperties( QDialog, Ui_SurveyPropertiesBase ):
def __init__(self, parent ):
QDialog.__init__( self, parent )
self.setupUi(self)
self.mDateSEdit.setDate( QDate.currentDate() )
self.mDateFEdit.setDate( QDate.currentDate() )
def survey(self):
return self.mSurveyLineEdit.text()
def projectCode(self):
return self.mProjectCodeLineEdit.text()
def date_s(self):
return self.mDateSEdit.date().toString( 'dd/MM/yyyy' )
def date_f(self):
return self.mDateFEdit.date().toString( 'dd/MM/yyyy' )
def contactName(self):
return self.mContactNameLineEdit.text()
def areas(self):
return self.mAreasLineEdit.text()
def mainspp(self):
return self.mMainSppLineEdit.text()
def comments(self):
return self.mCommentsLIneEdit.text()