3

How can I show/open layout '2019_A' of Layout Manager from Python console?

How show window layout specific?

I checked in menu Interface Customization, mActionShowLayoutManager and I do not know how to call from Python console.

Kadir Şahbaz
78.6k57 gold badges260 silver badges407 bronze badges
asked May 8, 2019 at 16:20

1 Answer 1

4

If you want open a new layout designer dialog for the specified layout.

# Open composition
project = QgsProject.instance()
projectLayoutManager = project.layoutManager()
layout = projectLayoutManager.layoutByName("2019_A")
iface.openLayoutDesigner(layout)

and for show only manager dialog

iface.showLayoutManager ()
Kadir Şahbaz
78.6k57 gold badges260 silver badges407 bronze badges
answered May 8, 2019 at 17:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.