On Monday 25 April 2005 18:07, Kenneth Gonsalves wrote:
On Monday 25 Apr 2005 5:32 pm, sherlock@vsnl.com wrote:
extract of avsap.py in the avsap-1.1042.tgz shows version 1.10
true. but the line you complain off is not there in the file:
from wxPython.wx import *
Could you please download the sourceforge tarball and check. I am sure that the offending line IS there. Double Checked by downloading the file from http://easynews.dl.sourceforge.net/sourceforge/avsap/avsap-1.1042.tgz.
rgds jtd
On Tuesday 26 Apr 2005 9:34 am, sherlock@vsnl.com wrote:
Could you please download the sourceforge tarball and check. I am sure that the offending line IS there. Double Checked by downloading the file from http://easynews.dl.sourceforge.net/sourceforge/avsap/avsap-1.1042.t gz.
from:
http://prdownloads.sourceforge.net/avsap/avsap-1.1042.tgz?use_mirror=nchc
contents of avsap.py:
import wxversion wxversion.select("2.5") import wx from config import * from login import login from utilities import * from top import top import gettext import Reg import sys reload(sys) sys.setdefaultencoding('utf-8') del sys.setdefaultencoding
class avsap(wx.App): def OnInit(self): Reg.add('schema','public') Reg.add('databasename',databasename) Reg.add('username',username) Reg.add('passwd',password) gettext.install('avsap','./locale',unicode=True) self.lan = gettext.translation('avsap','./locale',languages=[lang]) self.lan.install() connect = login(None) connect.ShowModal() connect.Destroy() if Reg.get('loglevel'): topwin = top(None, pos=[0,0]) topwin.Show(1) else: self.Destroy() return 1
if __name__ == "__main__": rest = avsap(0) rest.MainLoop()
Hi I use Suse 9.3 There is no wxpython for it. Rajeev RK loaded it on fc3 and it keeps giving segmentation faults when any window is closed.
Regards Saswata
Kenneth Gonsalves wrote:
On Tuesday 26 Apr 2005 9:34 am, sherlock@vsnl.com wrote:
Could you please download the sourceforge tarball and check. I am sure that the offending line IS there. Double Checked by downloading the file from http://easynews.dl.sourceforge.net/sourceforge/avsap/avsap-1.1042.t gz.
from:
http://prdownloads.sourceforge.net/avsap/avsap-1.1042.tgz?use_mirror=nchc
contents of avsap.py:
import wxversion wxversion.select("2.5") import wx from config import * from login import login from utilities import * from top import top import gettext import Reg import sys reload(sys) sys.setdefaultencoding('utf-8') del sys.setdefaultencoding
class avsap(wx.App): def OnInit(self): Reg.add('schema','public') Reg.add('databasename',databasename) Reg.add('username',username) Reg.add('passwd',password) gettext.install('avsap','./locale',unicode=True) self.lan = gettext.translation('avsap','./locale',languages=[lang]) self.lan.install() connect = login(None) connect.ShowModal() connect.Destroy() if Reg.get('loglevel'): topwin = top(None, pos=[0,0]) topwin.Show(1) else: self.Destroy() return 1
if __name__ == "__main__": rest = avsap(0) rest.MainLoop()
*chops* Can we please close this thread. Or at-least change the subject?
Regards,
ah
On Wednesday 27 Apr 2005 1:01 am, Saswata Banerjee & Associates wrote:
Hi I use Suse 9.3 There is no wxpython for it. Rajeev RK loaded it on fc3 and it keeps giving segmentation faults when any window is closed.
wxPython works on all linux distros - install it from source. If it gives seg faults, it means it is not properly installed. To test wxpython installation, download the wxpython demo and try to run it. If the demo doesnt work then you need to fix the wxpython installation.