View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010847 | Scribus | Scripter | public | 2012-07-05 18:14 | 2012-11-28 12:43 |
Reporter | ale | Assigned To | jainbasil | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | assigned | Resolution | open | ||
Product Version | 1.5.0svn | ||||
Summary | 0010847: new scripter: could not run Scripter.activeWindow.setRedraw(True) | ||||
Description | i could not run Scripter.activeWindow.setRedraw(True)... i could find it in api_window.cpp but i could not run it... | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
@ale, please try this: win = Scripter.activeWindow win.redraw = True This will set the redraw to True. |
|
i've created a text frame in a document and i'm running in the script editor the following code: # -*- coding: utf-8 -*- from __future__ import with_statement import time Scripter.activeWindow.redraw = True item = Scripter.activeDocument.items[0] item.text = "abc" time.sleep(2) item.text = "def" i never see "abc"... so i think that redraw is always false, while running a script... most of the time not a big issue... but can be disturbing in some case (as an example if you make some changes to a document and then pop up an export to pdf dialog: you would like to show the updated document in the backgroun...) |