https://bugs.documentfoundation.org/show_bug.cgi?id=94856
Bug ID: 94856
Summary: createStatusIndicator() not functioning correctly
Product: LibreOffice
Version: 5.0.2.2 release
Hardware: x86 (IA32)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
I have some Python scripts which make use of the status bar. The scripts work
correctly in all versions of OpenOffice, and LibreOffice prior to 5.0. With
version 5.0, it no longer works correctly.
A python script to demonstrate this problem follows. This should set the status
indicator to 20%, pause for 2s, set the status indicator to 70%, pause 2s, and
then reset the status bar back to normal.
=======================================================
import time
def test1():
oDoc = XSCRIPTCONTEXT.getDocument()
Controller = oDoc.getCurrentController()
DocFrame = Controller.getFrame()
oStatusIndicator = DocFrame.createStatusIndicator()
oStatusIndicator.start( "Test", 10 ) # establish label, and maximum
value of 10
oStatusIndicator.setValue(2) # set status to 20%
time.sleep(2) # wait 2 seconds
oStatusIndicator.setValue(7) # set status to 70%
time.sleep(2)
# reset the status bar back to normal
oStatusIndicator.reset()
oLayout = oDoc.getCurrentController().getFrame().LayoutManager
StatusURL = "private:resource/statusbar/statusbar"
oLayout.destroyElement(StatusURL)
oLayout.createElement(StatusURL)
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs