On Mon, Apr 20, 2015 at 09:32:09PM +0100, Andrés Muñiz Piniella wrote:
> Thank you very much, I am sure this will get me going!

I should add how to create a new selection from scratch.  This is a bit
tricky because the selection classes are dynamically loaded from modules
and there are no direct concrete constructors.  You need to use the
generic GObject contructor gobject.new():

    import gobject

    sel = gobject.new('GwySelectionLine')    # Replaces sel = SelectionLine()
    sel.set_data(1, [0.0, 0.0, 1e-6, 1e-6])
    c = gwy.gwy_app_data_browser_get_current(gwy.APP_CONTAINER)
    c['/0/select/line'] = sel

Regards,

Yeti


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to