8

I'm trying to write a python plugin for QGis. I'd like to debug some DB queries and I need a way to display the result.

I thought about using a popup to display it, but I don't know how to show a popup from inside a python plugin.

Can anyone suggest me how to do that?

8

Finally I solved this way:

def printMsg(self,msg):
    QMessageBox.information(self.iface.mainWindow(),"Debug",msg)

I don't know if it's the best way to go, but it seems to work fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.