Skip to content Skip to sidebar Skip to footer

Simple Python Script To Get A Libreoffice Base Field And Play On Vlc

I've banged my head for hours on this one, and I don't understand the LibreOffice macro api well enough to know how to make this work: 1) This script works in python: #!/usr/bin/en

Solution 1:

For example, say the form is based on a table containing a column called PATH. Assign the button's Execute action event to this function:

defplayvlc_button_pressed(oEvent):
    oForm = oEvent.Source.getModel().getParent()
    lNameCol = oForm.findColumn('PATH')
    sPath = oForm.getString(lNameCol)
    play_vlc(sPath)

Documentation for Base macros is confusing, but there is some at: http://www.pitonyak.org/database/

Post a Comment for "Simple Python Script To Get A Libreoffice Base Field And Play On Vlc"