View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017595 | Scribus | Scripter | public | 2025-07-29 15:28 | 2025-07-29 17:10 |
Reporter | prcek | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | x86_64 | OS | Linux | OS Version | Fedora 40 |
Product Version | 1.6.4 | ||||
Summary | 0017595: getFrameText() does not find a text frame when it is inside a group | ||||
Description | Having a document with a text frame and other item(s) that are grouped together into a group I cannot use the function call to get the text inside the frame. Script raises "scribus.NoValidObjectError: Object not found" exception | ||||
Steps To Reproduce | * Create a document * add a text frame, you may insert any text, note the text frame name * add any other item * group the frame and item inside group * try to run scribus.getFrameText(the name of the frame you've noted before) in python console -- exception is raised -- in case you ungroup the previously created group, and try it again it will return the text inside the frame | ||||
Additional Information | * using 1.6.4 from AppImage * getAllText() fails in the same way * I suspect it is connected to https://bugs.scribus.net/view.php?id=17490 # in my case >>> g = 'Copy of Group173 (2)' items = scribus.getGroupItems(g, recursive=True) for item in items: print(item) ('Text757', 4, 757) ('Line758', 5, 758) >>> t = scribus.getFrameText('Text757') Traceback (most recent call last): File "<console>", line 1, in <module> scribus.NoValidObjectError: Object not found >>> t = scribus.getAllText('Text757') Traceback (most recent call last): File "<console>", line 1, in <module> scribus.NoValidObjectError: Object not found | ||||
Tags | No tags attached. | ||||
Patch | No | ||||