Description: On Windows, if you install LibreOffice after uninstalling JRE, the buttons in the Python Macros dialog are 'greyed out' and unclickable, preventing Creation, Editing, Renaming, and Deletion of Python macros. Steps to Reproduce: 1. Install JRE for Windows 2. Uninstall JRE for Windows 3. Install latest LibreOfficeDev daily build 4. Open Writer 5. Go to Tools > Macros > Organise Macros > Python … Actual Results: The dialog box appears, but the Create, Edit, Rename, and Delete buttons are greyed out. Expected Results: The buttons shouldn't be greyed out. Reproducible: Always User Profile Reset: No Additional Info: Previously, an error message appeared before this dialog appeared; this has been fixed (see bug 156161 and bug 156701), but the greyed out buttons might be related to this. Help > About LibreOfficeDev: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: e15bf7363adb20c77aee51e09b6f2604d741619b CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: en-GB (en_GB); UI: en-GB Calc: threaded
Are they enabled with JRE installed?
Asking because I assume, that this is completely unrelated to the JRE status. It is likely simply how Python script dialog functions, and JRE here is red herring...
There is no Python IDE in LibreOffice. This shortcoming (I bet there is already an enhancement request about it) is addressed using APSO [1]; the built-in dialog for now can only be used for *running* existing macros, nothing else... [1] https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python
tdf#56289 is closed - but that's IMO is wrong.
You're completely right; those buttons simply do not work, and are always greyed out, regardless of if JRE is installed or not! Following the bug 56289 discussion, I don't think the Rename and Delete buttons would require a new Python editor in order to be implemented (do the Basic, Beanshell, and JavaScript macro dialogs share the same code for deletion and renaming?) The Create and Edit ones might do, which I can see would be a lot of work to add, but leaving them as greyed out normally implies that the feature exists, but is disabled for some reason; removing them altogether might make it clearer to users?
Just to update from the original post: Steps to Reproduce: 1. Open Writer 2. Go to Tools > Macros > Organise Macros > Python … Expected Results: The Delete and Rename buttons should work in the same way as the Basic, Beanshell, and Javascript macro dialogs. The Create and Edit buttons should probably be removed until a Python macro editor is included in LO.
Let's mark as a duplicate and reopen bug 56289 then. Thank you both! *** This bug has been marked as a duplicate of bug 56289 ***