How to prompt for layer selection from python console in QGIS?

المشرف العام

Administrator
طاقم الإدارة
During script development it's useful to use the QGIS python console to test the same script on different layers. Currently I've been hardcoding layer strings and just swapping out but it isn't particularly refined!

Ideally I want to prompt keyboard input or throw up a mini gui combo box.

Can anyone provide example code or signpost to some relevant documentation please. (or suggest an alternative approach)



أكثر...
 
أعلى