<span id="result_box" class="short_text"><span style="" title="">Hallo to all of you.<br><br>I use scribus 1.3.3.13svn on ubuntu 10.04.<br><br>This is a script that I wrote as an example of a procedure aimed to check the systems requirements, and that causes the crash of scribus.<br>
<br>#!/usr/bin/env python<br># -*- coding: utf-8 -*-<br><br>import Tkinter as tk<br>import tkMessageBox as tkmb<br>import sys<br><br>def main1():<br> errMsg = "This script requires Python v. 8.5 or later.\nYou are using Python v. %s" % sys.version.split()[0]<br>
print errMsg<br> root = tk.Tk() ### (1)<br> root.withdraw() ### (2)<br> tkmb.showerror('Python error', errMsg) ### (3)<br> sys.exit(1)<br> <br>def main2():<br> errMsg = "This script requires Python v. 8.5 or later.\nYou are using Python v. %s" % sys.version.split()[0]<br>
print errMsg<br> tkmb.showerror('Python error', errMsg)<br> sys.exit(1)<br> <br>if __name__ == '__main__':<br> # comment or uncomment to respectively test main1 OR main2<br> main1()<br> #main2()<br>
<br>in main1 the lines (1) and (2) are a trick to center the message box and to not let appear the root window. main2 is the same function as main1 but without the lines (1) and (2)<br>The problem is that, as in main1 as same in main2, when I run this script scribus crashes, and it doesn't work any more. The messagebox remains on the screen and nothing happens.<br>
<br>I tested the same script in the linux console and it works very well.<br><br>Where is the problem? Am I in fault or what else?<br><br>Sam Qasbah<br></span></span>