call python code from UI
- From: Anatoly Asviyan <aanatoly gmail com>
- To: gnumeric-list gnome org
- Subject: call python code from UI
- Date: Fri, 11 Oct 2013 20:30:39 +0200
Hi
I'm writing demo python plugin that adds menu item to insert 'hello' into A1 cell
The function to change a spreadsheat is ok (see below) but I can't make UI to actually call it
and need help with that
Details:
1. gnumeric's plugin manager shows new 'abc' plugin with 1 user interface action
2. there is new 'Say hello' menu item under 'Tools' menu
3. running the action from python console works
4. running same action from menu does not (seems that it just isn't called)
To run it from console
1. click on a 'say hello' menu item, that adds new interpreter
2. open python console, select 'abc' interpreter
3. run f_abc_action1(0,0) and see 'hello' in A1 cell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]