View Issue Details

IDProjectCategoryView StatusLast Update
0017857ScribusScripterpublic2026-06-21 14:19
ReporterJLuc Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformLinuxOSUbuntuOS Version24.04
Product Version1.6.5 
Summary0017857: docChanged(1) setRedraw(True) redrawAll() dont refresh display after columns # change
DescriptionAfter `setColumns(1)` changing the number of columns in a text frame,

- calling all 3 : `docChanged(1) setRedraw(True) redrawAll()`

doesnt force the refresh of the screen.

- inserting before these lines a width change :
```
theframe = scribus.getSelectedObject(0)
width, height = scribus.getSize(theframe)
scribus.sizeObject(width + 10, height, theframe)
scribus.sizeObject(width, height, theframe)
```
does refresh the display

See trial script in https://bugs.scribus.net/view.php?id=17849
Tagsdisplay, refresh, scripter
PatchNo

Activities

ale

2026-06-21 07:13

manager   ~0053855

For your information: docChanged() and setRedraw() have probably nothing to do with forcing a redraw on screen.

ale

2026-06-21 07:16

manager   ~0053856

Last edited: 2026-06-21 07:48

In the current Scribus development version, scribus.setColumns(2) does refresh the display. Without the need to call any other functions.

I think that we can close this as "resolved".

(p.s.: tested in both the console and by running a script in a Python file)

JLuc

2026-06-21 13:28

developer   ~0053862

Last edited: 2026-06-21 13:29

Thanks for testing ale.
I got 1.7.3 appimage and tested `scribus.setColumns(2)` in the scripter console and could see that the number of column is refreshed, but not the text layout :
- the guideline positions are updated
- not the text layout

Going from 3 columns to 2 colums : text is still in "3 columns layout" :

Issue History

Date Modified Username Field Change
2026-06-20 16:16 JLuc New Issue
2026-06-20 16:16 JLuc Tag Attached: display
2026-06-20 16:16 JLuc Tag Attached: refresh
2026-06-20 16:16 JLuc Tag Attached: scripter
2026-06-21 07:13 ale Note Added: 0053855
2026-06-21 07:16 ale Note Added: 0053856
2026-06-21 07:48 ale Note Edited: 0053856
2026-06-21 07:48 ale Tag Attached: #tobeclosed
2026-06-21 13:28 JLuc Note Added: 0053862
2026-06-21 13:28 JLuc File Added: scribus 173 scripter change columns.jpg
2026-06-21 13:28 JLuc Note Edited: 0053862
2026-06-21 13:29 JLuc Note Edited: 0053862
2026-06-21 14:19 ale Tag Detached: #tobeclosed