a.l.e,
Here is a very basic example of the issue that im having.
I have 1 text frame on my Scribus doc and its called "Text1".
I also have the below sample script.
-----------
import scribus
scribus.selectObject("Text1")
textframe = scribus.getSelectedObject()
scribus.copyObject(textframe)
scribus.pasteObject(textframe)
-----------
If you follow this order:
1. When I enter some text into my textframe, click out of the text frame and select the text frame again so its selected, I run the script to simply copy/paste the object.
works great and it pastes the text frame onto the page. (as shown in screen shot textframe_selected.png).
2. If you do the same thing, enter some text into the text frame, and keep the cursor in the text block as if you are entering more text, and then run the same script.
If you look at the attached screen shot, this is the result I get (see cursor_in_textframe.png).
its putting in the textframe inside the existing text frame etc.
Is this a bug, or am I doing something incorrectly with the script? I would like to copy/paste the entire text frame as if I had it selected in the first example. (We cant rely on the script to work depending on where the end user has something clicked).
running MacOS and scribus 1.5.6 r. 24102 now.
[attachment deleted by admin]