Thankyou for your reply

I suppose there are potentially many solutions I could look at for my particular situation, one of those might be writing my own private plugin which will give me the capability to get a toolbar button from which it can then call my script if the script code is copied into the plugin.

Questions are mostly along the lines

- are there any differences in the way a script interacts with a running application when the script is incorporated into a plugin

- can a custom toolbar or button be added in the Layout window (using the code example shown for ch16 of the pyqgis cookbook)

- can a script or plugin place a message in the message bar of a Layout window instead of the main application window

On 29/06/21 7:26 pm, Luigi Pirelli wrote:
Hi Patrick

seems more a question for the developer list where many UX involved people can give you opinions.

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli <https://www.linkedin.com/in/luigipirelli> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli <http://gis.stackexchange.com/users/19667/luigi-pirelli>
* GitHub: https://github.com/luipir <https://github.com/luipir>
* Book: Mastering QGIS3 - 3rd Edition <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
* Hire a team: http://www.qcooperative.net <http://www.qcooperative.net>
**************************************************************************************************


On Tue, 29 Jun 2021 at 05:48, Patrick Dunford <enzedrailm...@gmail.com <mailto:enzedrailm...@gmail.com>> wrote:

    Just have a question here about the use of separate application
    windows
    for the Qgis application main window and the Layout window. Obviously
    the separate layout windows can be multiple in number whereas most of
    the time we only need one application main window open.

    However for me there is the question of having different toolbars and
    panels available in the two different types of window. Whilst they do
    fulfill different functions of the application, the crossover between
    those functions that is easy to achieve when running a script
    somewhat
    blurs the merits of separate windows and raises the question of why
    panels and toolbars can only be used in one or the other windows
    but not
    both.

    In other words should you have the two distinct types of window or
    one
    window that can have a combination of panels and toolbars from
    anywhere.
    Granted that that would be a challenge if implemented to its fullest
    extent since most of the panels and toolbars are specific to each
    window
    type and the canvas would have to become some sort of panel as well.

    My view on this is mostly driven by the apparently reasonable
    conclusion
    that the Python scripting console panel should not be limited to only
    being able to be docked to the application main window instead of the
    layout window as is currently the case. I have a script that
    performs a
    layout export to image and I have to keep switching backwards and
    forwards between the main window and the layout window to run the
    script, which can be for hundreds of export operations in a day. The
    script itself reduces the number of mouse clicks needed to run
    each of
    the individual exports by automatically selecting the layers to
    make up
    an export in the main window.

    _______________________________________________
    Qgis-user mailing list
    Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
    List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
    <https://lists.osgeo.org/mailman/listinfo/qgis-user>
    Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
    <https://lists.osgeo.org/mailman/listinfo/qgis-user>

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to