Template
forked from CEN-RA/Plugin_QGIS
debug
This commit is contained in:
@@ -50,6 +50,9 @@ import psycopg2
|
||||
import psycopg2.extras
|
||||
import base64
|
||||
|
||||
global DeBUG
|
||||
DeBUG = 0
|
||||
|
||||
try:
|
||||
account = login_base('account')
|
||||
user = account[0]
|
||||
@@ -60,6 +63,8 @@ try:
|
||||
sigdb = account[5]
|
||||
refdb = account[6]
|
||||
|
||||
|
||||
|
||||
except:
|
||||
print('')
|
||||
EDITOR_CLASS = load_ui('CenRa_Flux_base.ui')
|
||||
@@ -211,6 +216,12 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
||||
self.viewer.titleChanged.connect(self.NewTitle)
|
||||
layout.addWidget(self.lineEdit)
|
||||
self.viewer.hide()
|
||||
self.DeBUG.addItem('')
|
||||
self.DeBUG.addItem('01')
|
||||
self.DeBUG.addItem('0726')
|
||||
self.DeBUG.addItem('4269')
|
||||
|
||||
self.DeBUG.hide()
|
||||
#self.lineEdit.mousePressEvent = self._mousePressEvent
|
||||
|
||||
#metadonnees_plugin = open(self.plugin_path + '/metadata.txt')
|
||||
@@ -219,6 +230,19 @@ class Flux_Editor(QDialog, EDITOR_CLASS):
|
||||
def raise_(self):
|
||||
"""Run method that performs all the real work"""
|
||||
self.bd_source()
|
||||
def ModeDeBUG(self):
|
||||
self.DeBUG.show()
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
global DeBUG
|
||||
if 330 <= event.pos().x() <= 560 and 5 <= event.pos().y() <= 75:
|
||||
DeBUG = DeBUG+1
|
||||
if DeBUG == 3:
|
||||
DeBUG = 0
|
||||
self.ModeDeBUG()
|
||||
else:
|
||||
DeBUG = 0
|
||||
self.DeBUG.hide()
|
||||
|
||||
def NewTitle(self):
|
||||
if self.viewer.title() != '':
|
||||
|
||||
Reference in New Issue
Block a user