[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    [Qgis-developer] QGIS pyqt Dockwidget plugin with pushButton
From:       m roy <royroge () outlook ! com>
Date:       2015-11-30 12:10:18
Message-ID: DB3PR08MB025284D4752D048865ABB63EA7000 () DB3PR08MB0252 ! eurprd08 ! prod ! outlook ! com
[Download RAW message or body]

Hi,

i'm trying to setup a dock widget python plugin,

using the plugin builder i managed to setup the plugin
and now i need to execute a query:


def execute_query:
      connection_parameres = connpar
      defineQuery = "SELECT attribute FROM mytable"
      cursor.execute(defineQuery)
      ...etc

now i need to execute the method when a pushButton is clicked
this below works with a "regular" Dialog plugin but not with a 
dockwidget plugin:

(queryPush is a QT pushButton)

self.dlg.queryPush.clicked.connect(self.execute_query)

some help or link to code example ?

thanks, Roy.

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic