-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch_plus_dockwidget.py
36 lines (30 loc) · 1.53 KB
/
search_plus_dockwidget.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
# -*- coding: utf-8 -*-
"""
/***************************************************************************
begin : June 2015
copyright : (C) 2015 by Luigi Pirelli
email : [email protected]
***************************************************************************/
* *
* 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. *
* *
***************************************************************************/
"""
from qgis.PyQt.QtWidgets import QDockWidget
from .ui.search_plus_dialog_base_ui import Ui_searchPlusDockWidget
# cannot apply dynaic loading because cannot promote widget
# belongin to othe modules
# import os
# from PyQt4 import uic
# FORM_CLASS, _ = uic.loadUiType(os.path.join(
# os.path.dirname(__file__), 'ui', 'search_plus_dialog_base.ui'))
# class SearchPlusDockWidget(QtGui.QDockWidget, FORM_CLASS):
class SearchPlusDockWidget(QDockWidget, Ui_searchPlusDockWidget):
def __init__(self, parent=None):
"""Constructor."""
super(SearchPlusDockWidget, self).__init__(parent)
# Set up the user interface from Designer.
self.setupUi(self)