Bug 46083

Summary: Calling a python macro in a dialog does not work from the IDE.
Product: LibreOffice Reporter: paslebihan
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INVALID    
Severity: normal    
Priority: medium    
Version: 3.5.0 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Python macro added in the IDE

Description paslebihan 2012-02-14 23:45:36 UTC
Created attachment 57064 [details]
Python macro added in the IDE

From the IDE, in a dialog containing a button, it is possible to add a python macro in the 'execute action' event of the button (like a basic macro).
Unfortunately the python macro is not called during the execution of the dialog.
Comment 1 hanya 2012-04-03 01:14:45 UTC
It seems, your python function have to take one or more arguments passed by the broadcaster as follows.

def method_bound_to_button(*args):
    pass
Comment 2 Thomas Hackert 2013-06-22 16:46:57 UTC
Hello paslebihan, *,
would you be so kind to test the suggestion from comment 1, please? Does it work? Or does your original code with a newer version of LO than 3.5.0?
Sorry for the inconvenience
Thomas.
Comment 3 Thomas Hackert 2013-06-26 05:47:58 UTC
Hello paslebihan, *,
sorry, I set the keyword "Needinfo" instead of changing the status to "NEEDINFO" ... :( But it would be nice, if you could comment on comment 1 or comment 2 ... ;)
Sorry for the inconvenience
Thomas.
Comment 4 QA Administrators 2014-02-02 02:06:37 UTC
Dear Bug Submitter,

Please read the entire message before proceeding.

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 5 QA Administrators 2014-02-26 19:31:07 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INVALID due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided):

a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. 
Please do not:
a) respond via email 
b) update the version field in the bug or any of the other details on the top section of FDO