View Issue Details

IDProjectCategoryView StatusLast Update
0010847ScribusScripterpublic2012-11-28 12:43
Reporterale Assigned Tojainbasil  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Product Version1.5.0svn 
Summary0010847: new scripter: could not run Scripter.activeWindow.setRedraw(True)
Descriptioni could not run Scripter.activeWindow.setRedraw(True)...

i could find it in api_window.cpp but i could not run it...
TagsNo tags attached.
Patch

Activities

jainbasil

2012-11-28 02:51

administrator   ~0029290

@ale, please try this:

win = Scripter.activeWindow
win.redraw = True

This will set the redraw to True.

ale

2012-11-28 12:43

manager   ~0029292

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...)

Issue History

Date Modified Username Field Change
2012-07-05 18:14 ale New Issue
2012-07-05 18:14 ale Status new => assigned
2012-07-05 18:14 ale Assigned To => jainbasil
2012-07-05 18:14 ale Issue generated from: 0010846
2012-11-28 02:51 jainbasil Note Added: 0029290
2012-11-28 12:43 ale Note Added: 0029292