-
Notifications
You must be signed in to change notification settings - Fork 17
/
PlaceSelectionDialog.py
43 lines (37 loc) · 1.55 KB
/
PlaceSelectionDialog.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
38
39
40
41
42
43
"""
***************************************************************************
Name : Geocoding
Description : Geocoding and reverse Geocoding using Google
Date : 28/May/09
copyright : (C) 2009 by ItOpen
email : info@itopen.it
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
import os
# Import the PyQt and QGIS libraries
try:
from qgis.core import Qgis
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5 import uic
QT_VERSION=5
os.environ['QT_API'] = 'pyqt5'
except:
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import uic
QT_VERSION=4
# create the dialog for GeoCoding
class PlaceSelectionDialog(QDialog):
def __init__(self):
super(PlaceSelectionDialog, self).__init__()
uic.loadUi(os.path.join(os.path.dirname(__file__), 'Ui_PlaceSelection.ui'), self)