Re: Patch: export more methods to python
- From: Jean Bréfort <jean brefort normalesup org>
- To: Anatoly Asviyan <aanatoly gmail com>
- Cc: gnumeric-list gnome org
- Subject: Re: Patch: export more methods to python
- Date: Wed, 06 Nov 2013 11:40:57 +0100
Thanks for the patch, but this can be done even without adding anything
to the library. Something like:
/**
* Workbook:
* @wb_views: (content-type WorkbookView):
**/
I'll commit that later today.
Jean
Le mercredi 06 novembre 2013 à 11:36 +0200, Anatoly Asviyan a écrit :
Hi Jean
Thanks for explanation.I agree that a clean way is to tell
introspection what types each GPtrArray stores, but I do not know how
to do it. So I wrote two access functions that return explicit type -
and it worked!
In python console, you can do smth like this
from gi.repository import Gnm
wb=Gnm.App.workbook_get_by_index(0)
v=wb.get_view(0)
wbcg=Gnm.wb_view_get_control(v,0)
sheet=Gnm.wb_control_cur_sheet(wbcg)
sheet_view=Gnm.wb_control_cur_sheet_view(wbcg)
The patch is here
http://sourceforge.net/p/fborg/code/HEAD/tree/gnumeric/gir-exports-1.patch
--
Regards, Anatoly
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]