Dear list, I am on holiday! So, as planned, I am learning a little about writing Python scripts (yes, and I have a life) not least for adding more awesomeness to my Scribus.
On Stackoverflow user "Tommel" had asked this (and never received an answer since January): ---quote--- When importing a svg file to the DTP programme "Scribus" it shows a warning message * (with just one OK-button), that has to be confirmed to go on. This stops my Python Script from working. So I need a possibility to either confirm the message or - even better - to stop Scribus from showing this message. (something like the "Application.DisplayAlerts = False" in Excel VBA) A possible solution would be to send an "Enter" command using sendkeys, but I don't like that because the command could miss the target. ---unquote--- The warning message is this: "SVG file contains some unsupported features". I have seen it many times. I have told Tommel about this helpful list. Still, since I am learning myself, I have more questions: - Does this warning message pop up EVERY time I import and SVG into Scribus, or would I need to prepare for the (rare?) case, when I import a "perfect" SVG-file (without unsupported features)? - What is the official way in a script to handle Scribus user-dialog-popups? - What is the really-works-best-in-real-life way to handle Scribus user-dialogue-popups? - My personal preference would be, that when run by a script, Scribus should not suppress any warnings (nor questions) but rather handover them to the calling script in a "technical" way that can be analysed and then "answered" by the calling script. Maybe this is trivial. If it is being done anyway, please point me to the right place in the documentation. confession: this is just for my personal learning; for once there is no urgent problem for my work behind this question (and user Tommel has probably found some workaround); so keep that in mind for not wasting your precious time thank you for your input Martin ---- aside: I was impressed to get to know Stackoverflow (the pleasures of holiday, when one can just "browse" in the literal sense). And there is a related user group(?) called Graphic Design which is also full of goodies. Graphic Design has got a tag called "Scribus", but Stackoverflow (where technical rather than graphical matters are discussed) does not yet have a tag for Scribus. Maybe on this list there is a veteran with enough "reputation" to create the Scribus-tag on Stackoverflow, please.
