[libreoffice-users] Re: Python macros do not show

2020-09-08 Thread Jim
On 9/7/20 9:22 PM, Mauricio Baeza wrote: On Mon, 2020-09-07 at 21:05 -0500, Jim wrote: I just did a fresh install of Mint 20 which comes with LO 6.4xx. I did Tools-->Macros-->Organize Macros in Cakc but there is no entry for Python. A few years ago when I did the same thing with Mint 18 I had t

[libreoffice-users] Re: python macros article

2016-08-08 Thread Jim Byrnes
On 08/08/2016 04:12 AM, Piet van Oostrum wrote: Jim Byrnes wrote: > A while ago I read an article about updates to python uno in LO to make > it easier to use. At the time I didn't have the time to really pursue > it and forgot to bookmark it. Now I can't find it again. > > Does anyone may

Re: [libreoffice-users] Re: Python

2016-03-19 Thread Joshua Kramer
Paul, I sent you an example off-list. The easiest way I've been able to get this to work is by embedding the script into the ODS or ODT file itself. Try this: unzip an ODS file. Create a directory called Scripts, and then a directory called python under Scripts. (Note the capitalization!) Put

Re: [libreoffice-users] Re: Python

2016-03-19 Thread Mark Stanton
On Friday 18 March 2016 10:39:07 Jim Byrnes wrote: > On 03/18/2016 09:44 AM, Mark Stanton wrote: > > Does the Python macro interface work? > > Yes Gr8! Many thanks -- To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/

[libreoffice-users] Re: Python

2016-03-19 Thread Jim Byrnes
On 03/18/2016 09:44 AM, Mark Stanton wrote: Does the Python macro interface work? Yes Does it work well if it does work? I'm not sure what you mean by well, but it worked well enough for me to write a number of python macros a number of years ago. Haven't written any for a while now. Al

[libreoffice-users] Re: Python

2016-03-18 Thread Jim Byrnes
On 03/18/2016 09:36 PM, Paul Hammant wrote: I have tried all the security levels, with re-launches of LibreOffice in between. Yes I can run the sample Python macros. - Paul Again having never used a Mac I am just guessing. Since you can run the samples you know python macros work. Maybe it

[libreoffice-users] Re: Python

2016-03-18 Thread Jim Byrnes
On 03/18/2016 03:55 PM, Paul Hammant wrote: I have not worked out how to activate it :-( Ref http://listarchives.libreoffice.org/global/users/msg47885.html -ph I see from the link you are on a Mac. I am on linux but the last part of your path to the script seems to be about the same as mine

Re: [libreoffice-users] Re: Python

2016-03-18 Thread Paul Hammant
I have tried all the security levels, with re-launches of LibreOffice in between. Yes I can run the sample Python macros. - Paul On Fri, Mar 18, 2016 at 9:52 PM, Jim Byrnes wrote: > On 03/18/2016 03:55 PM, Paul Hammant wrote: > >> I have not worked out how to activate it :-( >> Ref http://lis

Re: [libreoffice-users] Re: Python Uno on Ubuntu 13.10

2013-11-30 Thread Tom Davies
Hi :) I didn't even know there was an irc channel for users :( I'm not into irc and i think most of us probably find that sort of thing a bit too geeky. Well, i think it sounds geeky and that i'm unlikely to understand it. Also i get the impression it's like social networking or real-time commun

Re: [libreoffice-users] Re: Python Uno on Ubuntu 13.10

2013-11-30 Thread A
I don't know what "user channel" on IRC you tried, but both #ubuntu and #python would be my first choices. Also note, that there's no telling who's listening at any one snapshot in time, so you want to repeat your question there at various times throughout the day & night. You get very differ

Re: [libreoffice-users] Re: Python Uno on Ubuntu 13.10

2013-11-30 Thread Element Green
Thank you for the tip. I previously tried the user channel on IRC, but didn't get a response at the time. I have a question field on Appy POD and Askubuntu, hopefully that turns up something there. Best regards, Element On Sat, Nov 30, 2013 at 4:21 AM, Tom Davies wrote: > Hi :) > It might b

Re: [libreoffice-users] Re: Python Uno on Ubuntu 13.10

2013-11-30 Thread Element Green
On Fri, Nov 29, 2013 at 11:20 PM, Alex Thurgood wrote: > Le 29/11/2013 22:49, Element Green a écrit : > > Hi, > > > There is a python3-uno, but it doesn't help me, since Appy POD does not >> yet >> support Python 3. The package was called python-uno on previous Ubuntu >> versions, but now its ma

Re: [libreoffice-users] Re: Python Uno on Ubuntu 13.10

2013-11-30 Thread Tom Davies
Hi :) It might be worth talking to the devs on irc or something. I think this issue is a bit beyond most of us here. They might be able to help you deal with the immediate problem by finding the best version of LibreOffice for you for now but then maybe help you with upgrading to a newer version

[libreoffice-users] Re: Python Uno on Ubuntu 13.10

2013-11-29 Thread Alex Thurgood
Le 29/11/2013 22:49, Element Green a écrit : Hi, There is a python3-uno, but it doesn't help me, since Appy POD does not yet support Python 3. The package was called python-uno on previous Ubuntu versions, but now its marked as deprecated and attempting to install it indicates that the libreof

[libreoffice-users] Re: Python and sys.argv.

2013-04-18 Thread Alexander Thurgood
Le 26/02/13 09:48, SuneOskar a écrit : Hi, Your question would be better asked on the LibreOffice developer mailing list. Alex -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Postin

[libreoffice-users] Re: Python extension not working on Mac (LibreOffice 4.0.2.2)

2013-04-18 Thread Alexander Thurgood
Le 17/04/13 19:04, Carles Pina i Estany a écrit : Hi Carles, Am getting a similar problem with the MRI tool : (com.sun.star.uno.RuntimeException) { { Message = ": invalid syntax (MRI.py, line 21), traceback follows\X000a /Applications/LibreOffice.app/Contents/program/pythonloader.py:102 in funct

[libreoffice-users] Re: Python extension not working on Mac (LibreOffice 4.0.2.2)

2013-04-18 Thread Alexander Thurgood
Le 17/04/13 19:04, Carles Pina i Estany a écrit : Hi Carles, > Doing a bit of investigation I've found that if I delete this line: > manifest:media-type="application/vnd.sun.star.uno-component;type=Python" > manifest:full-path="Scripts/MendeleyDesktopAPI.py"/> > > from the file (inside the exte

[libreoffice-users] Re: Python and sys.argv.

2013-02-26 Thread SuneOskar
I have my python macros placed in *My Macro*s . My problem is that I cannot import *argv* to a macro. When I use *from sys import argv* the system replies: *cannot import name argv* and if I use *print(sys.dir(argv))* to get the content of *sys *I can see that *argv* Is missing.See the following

[libreoffice-users] Re: python reading calc

2012-09-24 Thread Andreas Säger
Am 23.09.2012 15:30, dutchguy69 wrote: Did some research but have not found many leads yet. Hoping someone might be able to shed some light on this. C:\Program Files\LibreOffice 3.5\share\Scripts\python\pythonSamples\TableSample.py -- For unsubscribe instructions e-mail to: users+h...@glo

Re: [libreoffice-users] Re: python reading calc

2012-09-24 Thread Tom Davies
: Monday, 24 September 2012, 8:17 >Subject: Re: [libreoffice-users] Re: python reading calc > >Andreas - why are you always so grumpy?? Chill ! > >On 24 September 2012 08:16, Andreas Säger wrote: > >> Instead of running "tests", how about debugging your program a

Re: [libreoffice-users] Re: python reading calc

2012-09-24 Thread John Clegg
Andreas - why are you always so grumpy?? Chill ! On 24 September 2012 08:16, Andreas Säger wrote: > Instead of running "tests", how about debugging your program and reading > some > documentation? > > > > -- > View this message in context: > http://nabble.documentfoundation.org/python-reading-ca

[libreoffice-users] Re: python reading calc

2012-09-24 Thread Andreas Säger
Instead of running "tests", how about debugging your program and reading some documentation? -- View this message in context: http://nabble.documentfoundation.org/python-reading-calc-tp4008804p4008939.html Sent from the Users mailing list archive at Nabble.com. -- For unsubscribe instructions

Re: [libreoffice-users] Re: Python and Tkinter

2012-05-25 Thread webmaster-Kracked_P_P
On 05/25/2012 03:15 PM, Andreas Säger wrote: Am 25.05.2012 21:00, Andreas Säger wrote: Am 24.05.2012 19:39, SuneOskar wrote: Is Tkinter supported ? -- View this message in context: http://nabble.documentfoundation.org/Python-and-Tkinter-tp3985866.html Sent from the Users mailing list archive a

[libreoffice-users] Re: Python and Tkinter

2012-05-25 Thread Andreas Säger
Am 25.05.2012 21:00, Andreas Säger wrote: Am 24.05.2012 19:39, SuneOskar wrote: Is Tkinter supported ? -- View this message in context: http://nabble.documentfoundation.org/Python-and-Tkinter-tp3985866.html Sent from the Users mailing list archive at Nabble.com. help> modules Tkinter Here i

[libreoffice-users] Re: Python and Tkinter

2012-05-25 Thread Andreas Säger
Am 24.05.2012 19:39, SuneOskar wrote: Is Tkinter supported ? -- View this message in context: http://nabble.documentfoundation.org/Python-and-Tkinter-tp3985866.html Sent from the Users mailing list archive at Nabble.com. help> modules Tkinter Here is a list of matching modules. Enter any m

[libreoffice-users] Re: Python and Tkinter

2012-05-25 Thread SuneOskar
Visit wiki.python.org/moin/TkInter -- View this message in context: http://nabble.documentfoundation.org/Python-and-Tkinter-tp3985866p3986063.html Sent from the Users mailing list archive at Nabble.com. -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http:

[libreoffice-users] Re: Python and Tkinter

2012-05-25 Thread Larry Gusaas
On 2012-05-25 2:17 AM Tom Davies wrote: Who is TKinter? http://www.google.com/search?q=TKinter&ie=utf-8&oe=utf-8 -- _ Larry I. Gusaas Moose Jaw, Saskatchewan Canada Website: http://larry-gusaas.com "An artist is never ahead of his time but most people are far

[libreoffice-users] Re: Python uno object comparison change in 3.5

2012-03-04 Thread Alexander Thurgood
Le 04/03/12 06:09, Andrew Douglas Pitonyak a écrit : Hi Andrew, > Is there a dev list for questions of this sort? I have frequently seen > polite responses that the dev list is for people doing development on > LO. Probably moot since Andreas seems to have pointed out a bug in the > script itsel

[libreoffice-users] Re: Python uno object comparison change in 3.5

2012-03-04 Thread David Bolen
Andreas Säger writes: > Hi, > > Your 3rd line is supposed to be: > TABALIGN_LEFT = uno.Enum("com.sun.star.style.TabAlign", "LEFT") Crud, I don't how how I missed that, sorry - it's a cut 'n paste error when posting. The test script didn't have that typo, but had other enumerations defined that

Re: [libreoffice-users] Re: Python uno object comparison change in 3.5

2012-03-03 Thread Andrew Douglas Pitonyak
On 03/03/2012 06:23 AM, Alexander Thurgood wrote: Le 03/03/12 01:57, David Bolen a écrit : Hi David, Any thoughts would be appreciated. Your best bet would be to post this question to the dev list, I would guess that you are more likely to get a response there. Is there a dev list for quest

[libreoffice-users] Re: Python uno object comparison change in 3.5

2012-03-03 Thread Andreas Säger
Hi, Your 3rd line is supposed to be: TABALIGN_LEFT = uno.Enum("com.sun.star.style.TabAlign", "LEFT") With this modification I can run your code with various Python runtimes of OpenOffice.org as well as LibreOffice 3.3: $ $OFFICE unocmp.py A: uno.com.sun.star.style.TabStop A: (com.sun.star.sty

[libreoffice-users] Re: Python uno object comparison change in 3.5

2012-03-03 Thread Alexander Thurgood
Le 03/03/12 01:57, David Bolen a écrit : Hi David, > > Any thoughts would be appreciated. > Your best bet would be to post this question to the dev list, I would guess that you are more likely to get a response there. Alex -- For unsubscribe instructions e-mail to: users+h...@global.lib

Re: [libreoffice-users] Re: Python info for a new learner

2011-12-30 Thread webmaster for Kracked Press Productions
Thanks The need for Python was to recreate text file and word list manipulation utilities I created at least 4 years ago in C++ and somehow "lost" them. I did not want to re-learn C++ since Python was said to be much easier. Actually this morning was the first time I ran a "script" on Ubunt

[libreoffice-users] Re: Python info for a new learner

2011-12-30 Thread Andreas Säger
Take a lazy weekend and walk through http://docs.python.org/tutorial/index.html All you need is a text editor and a shell. A Python capable text editor provides some window where you can dump debugging output. Linux users who are familiar with vim or emacs already found their personal IDE for Pytho

Re: [libreoffice-users] Re: Python Equivalents for some BASIC uno calls

2011-08-01 Thread Onyeibo Oku
Villeroy to the rescue! Thanks a lot sent from mobile device -Original Message- From: Andreas Säger Date: Mon, 01 Aug 2011 00:07:46 To: Reply-To: users@global.libreoffice.org Subject: [libreoffice-users] Re: Python Equivalents for some BASIC uno calls import uno form

[libreoffice-users] Re: Python Equivalents for some BASIC uno calls

2011-07-31 Thread Andreas Säger
import uno form com.sun.star.sheet.CellFlags import FORMULA ThisComponent = XSCRIPTCONTEXT.getDocument() sh = ThisComponet.Sheets.getByIndex(0) oBasket = sh.queryContentCells(FORMULA) -- Unsubscribe instructions: E-mail to users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/g

[libreoffice-users] Re: python support for libreoffice

2011-03-10 Thread Colin J. Williams
On 10-Mar-11 14:17 PM, Onyeibo Oku wrote: Is python 3 supported in LibreOffice? No, not yet. I believe that LO is shipped with Python 2.6, LO does not yet use Python 2.7, which is the last of the 2.n series. Colin W. -- Unsubscribe instructions: E-mail to users+h...@libreoffice.org List ar

[libreoffice-users] Re: python macros & extensions for LibreOffice

2011-03-09 Thread Colin J. Williams
On 09-Mar-11 02:16 AM, lin wrote: On 2011-3-9 10:15, Onyeibo Oku wrote: I want to write a python macro/extension for LibreOffice but I don't see a guide. This is a good guide: http://www.oooforum.org/forum/viewtopic.phtml?p=56037#56037 It is the example of using python script in Calc, and now

[libreoffice-users] Re: Python scripting not available

2011-01-25 Thread Andreas Säger
Am 22.01.2011 22:33, Clio wrote: 22.01.2011 14:40, Andreas Säger пишет: Am 21.01.2011 23:28, Clio wrote: Here it is: https://bugs.freedesktop.org/show_bug.cgi?id=33355 Works for me. Extract the zip, install the oxt file contained in the extracted Demo folder, restart the office with some te

[libreoffice-users] Re: Python scripting not available

2011-01-25 Thread Andreas Säger
Am 23.01.2011 00:02, Matthias Erll wrote: I checked my scripts for that, although the "g_exportedScripts" is said to be optional. Anyway, the pre-installed examples should run, but they are not even shown in the dialog. I just tried WinXP and there it does not work for me either. Could you pleas

Re: [libreoffice-users] Re: Python scripting not available

2011-01-22 Thread Matthias Erll
Hi Andreas, Am 21.01.2011 22:12, schrieb Andreas Säger: > Am 21.01.2011 21:33, Matthias Erll wrote: > >> Same here. Works fine on my Mac LibO and OOo, but only in OOo under >> Windows 7. >> > > I run Python macros and one extension with LibO 3.3RC4. > Python macros require Unix line feeds and a gl

Re: [libreoffice-users] Re: Python scripting not available

2011-01-22 Thread Clio
22.01.2011 14:40, Andreas Säger пишет: Am 21.01.2011 23:28, Clio wrote: Here it is: https://bugs.freedesktop.org/show_bug.cgi?id=33355 Works for me. Extract the zip, install the oxt file contained in the extracted Demo folder, restart the office with some text document and call the macros fr

[libreoffice-users] Re: Python scripting not available

2011-01-22 Thread Andreas Säger
Am 21.01.2011 23:28, Clio wrote: Here it is: https://bugs.freedesktop.org/show_bug.cgi?id=33355 Works for me. Extract the zip, install the oxt file contained in the extracted Demo folder, restart the office with some text document and call the macros from Tools>Add-Ons>Calling Scripts --

[libreoffice-users] Re: Python scripting not available

2011-01-22 Thread Andreas Säger
Am 21.01.2011 21:33, Matthias Erll wrote: Same here. Works fine on my Mac LibO and OOo, but only in OOo under Windows 7. Kind regards, Matthias I run Python macros and one extension with LibO 3.3RC4. Python macros require Unix line feeds and a global variable g_exportedScripts = MyMacro1, My