Re: [QGIS-Developer] Programmaticaly open the Log Panel

2019-03-01 Thread Richard Duivenvoorde
On 02/03/2019 06.45, Thomas Gratier wrote:
> Hi,
> 
> Richard, the following works although restricted to opening the
> MessageLog panel
> 
>     iface.openMessageLog()

Ah, duh. Thanks Thomas, me bad.

I've bookmarked again, but what about putting
https://qgis.org/pyqgis/master/gui/QgisInterface.html
on the frontpage of
https://qgis.org/pyqgis/
I always have to search for it...
Or am I the only one?

Regards,

Richard Duivenvoorde
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Programmaticaly open the Log Panel

2019-03-01 Thread Thomas Gratier
Hi,

Richard, the following works although restricted to opening the MessageLog
panel

iface.openMessageLog()


Thomas

Le mar. 26 févr. 2019 à 09:06, Tejas L  a écrit :

> Hi Richard,
>
> That worked perfectly, thanks!
>
> When developing plugins I always find myself opening the Log window and
> the Python console, after I start up QGIS. It would be nice to have a way
> to save the panel layout. At the moment though, your code snippet is
> sufficient for my needs.
>
> Regards,
> Tej
>
> --
> *From:* Richard Duivenvoorde 
> *Sent:* Tuesday, February 26, 2019 3:19 AM
> *To:* qgis-developer@lists.osgeo.org
> *Cc:* tej...@live.com
> *Subject:* Re: [QGIS-Developer] Programmaticaly open the Log Panel
>
> On 25/02/2019 09.57, Tejas L wrote:
> > Hello team,
> >
> > I would like to automatically open the Log Panel whenever Qgis starts.
> > Is there a way to do this?
>
> Hi,
>
> For what I know there is no api call for it directly, but you can search
> for child widgets in the main panel, something like this:
>
> for widget in iface.mainWindow().children():
> if widget.objectName() == 'MessageLog':
> widget.show()
>
> Or shorter (but trickier):
>
> iface.mainWindow().findChild(QDockWidget, 'MessageLog').show()
>
> With me this pops up the Messagelog Panel (though then you do not have
> your tab yet, but that is a child of that one probably...)
>
> Regards,
>
> Richard Duivenvoorde
>
> Ps what do you want to use it for, because more people see the use of it
> maybe we can just add it (or ask to be added?)?
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Programmaticaly open the Log Panel

2019-02-26 Thread Tejas L
Hi Richard,

That worked perfectly, thanks!

When developing plugins I always find myself opening the Log window and the 
Python console, after I start up QGIS. It would be nice to have a way to save 
the panel layout. At the moment though, your code snippet is sufficient for my 
needs.

Regards,
Tej


From: Richard Duivenvoorde 
Sent: Tuesday, February 26, 2019 3:19 AM
To: qgis-developer@lists.osgeo.org
Cc: tej...@live.com
Subject: Re: [QGIS-Developer] Programmaticaly open the Log Panel

On 25/02/2019 09.57, Tejas L wrote:
> Hello team,
>
> I would like to automatically open the Log Panel whenever Qgis starts.
> Is there a way to do this?

Hi,

For what I know there is no api call for it directly, but you can search
for child widgets in the main panel, something like this:

for widget in iface.mainWindow().children():
if widget.objectName() == 'MessageLog':
widget.show()

Or shorter (but trickier):

iface.mainWindow().findChild(QDockWidget, 'MessageLog').show()

With me this pops up the Messagelog Panel (though then you do not have
your tab yet, but that is a child of that one probably...)

Regards,

Richard Duivenvoorde

Ps what do you want to use it for, because more people see the use of it
maybe we can just add it (or ask to be added?)?
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Programmaticaly open the Log Panel

2019-02-25 Thread Richard Duivenvoorde
On 25/02/2019 09.57, Tejas L wrote:
> Hello team,
> 
> I would like to automatically open the Log Panel whenever Qgis starts.
> Is there a way to do this?

Hi,

For what I know there is no api call for it directly, but you can search
for child widgets in the main panel, something like this:

for widget in iface.mainWindow().children():
if widget.objectName() == 'MessageLog':
widget.show()

Or shorter (but trickier):

iface.mainWindow().findChild(QDockWidget, 'MessageLog').show()

With me this pops up the Messagelog Panel (though then you do not have
your tab yet, but that is a child of that one probably...)

Regards,

Richard Duivenvoorde

Ps what do you want to use it for, because more people see the use of it
maybe we can just add it (or ask to be added?)?
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Programmaticaly open the Log Panel

2019-02-25 Thread Tejas L
Hello team,

I would like to automatically open the Log Panel whenever Qgis starts. Is there 
a way to do this?

Thanks,
Tej
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer