Bug 126390 - "Create" button in Python macros is grayed out
Summary: "Create" button in Python macros is grayed out
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-14 20:40 UTC by Konstantin Kharlamov
Modified: 2019-11-04 15:20 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Kharlamov 2019-07-14 20:40:32 UTC
# Steps to reproduce

1. Open lowriter or localc
2. Go to Tools → Macros → Organize Macros → Python…

## Expected

In the new window the "Create" button should be active, so a user can create a macro.

## Actual

"Create" button is grayed out.

# Additional information

This looks very bad: there's at least a question on StackOverflow about it with 21k views https://stackoverflow.com/questions/21413664/how-to-run-python-macros-in-libreoffice
Comment 1 Oliver Brinzing 2019-07-15 16:59:53 UTC
issue seems to be inherited from OpenOfffice
Comment 2 Roman Kuznetsov 2019-07-16 21:02:03 UTC
Konstantin, unfortunately for using Python macroses in LO, you shoud install APSO extension https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python
Comment 3 Konstantin Kharlamov 2019-07-16 23:03:34 UTC
(In reply to Roman Kuznetsov from comment #2)
> Konstantin, unfortunately for using Python macroses in LO, you shoud install
> APSO extension
> https://extensions.libreoffice.org/extensions/apso-alternative-script-
> organizer-for-python

Thanks, so, for this menu to work this extension needs to be shipped with LO out-of-the-box then?
Comment 4 Julien Nabet 2019-09-17 10:07:11 UTC
Xisco/Heiko: from UI point of view, if Python macro isn't provided out-of-the-box, shouldn't Python menu entry be removed by default?
Indeed an extension can add an entry and at least we wouldn't have a disabled button by default. I had also searched how to use this feature and had given up.
Comment 5 Konstantin Kharlamov 2019-09-17 10:17:16 UTC
Vast majority of systems has Python installed. Please, just distribute the extension necessary to make it work by default. The extension doesn't weight too much, or does it?
Comment 6 Heiko Tietze 2019-09-17 11:34:00 UTC
(In reply to Julien Nabet from comment #4)
> if Python macro isn't provided... shouldn't Python menu entry be removed

You still can _Run_ the macro. Or edit. So hiding the entry makes no sense to me.

I would rather not distinguish between the languages at the menu and have Run, Edit (could also be started from the Organize dialog), and Organize there. And at the Run/Organize dialog we could have a filter for the different types.
Comment 7 Julien Nabet 2019-09-17 12:07:05 UTC
(In reply to Heiko Tietze from comment #6)
> (In reply to Julien Nabet from comment #4)
> > if Python macro isn't provided... shouldn't Python menu entry be removed
> ...
> I would rather not distinguish between the languages at the menu and have
> Run, Edit (could also be started from the Organize dialog), and Organize
> there. And at the Run/Organize dialog we could have a filter for the
> different types.

Sorry, I meant removing "Create" button in Python part.
(Also, it astonishes me that we embed rhino for Javascript macro + beanshell and nothing for Python but that's another story).