Re: Patch: export more methods to python



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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]