[Boa Constr] Re: Boa .4_pre and updating, experience
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2005-03-09 09:30:19
|
Hi Ray, Can you can the latest Boa version from CVS and then replace the files I attach to response to Tim and try again? See you Werner Ray S wrote: > Hi Riaan, > > At 04:09 PM 3/8/2005 +0200, you wrote: > >> According to your first message I understood that the script had >> been converted. How can it still use these old style imports then? > > > I just recreated what I did: > 1. tried to open designer with my old frame - error log log1.txt attached > 2. ran updater (with a few events added) - error log log after > update.txt attached > 3. made the i =>> number and wxDOT changes; designer now runs fine as > well as program, it also compiles with py2exe. > > Note that I did not do the parts in step 2 in the Wiki: > > * #Boa:Frame:wxFrame1 to #Boa:Frame:Frame1 > * from wxPython.wx import * to import wx > * [wxID_WXFRAME1] to [wxID_FRAME1] = [wx.NewId() for _init_ctrls > in range(1)] > * wxButton to wx.Button > > so the imports are the old style. I think this flies because of the (I > think temporary) crutch in the > C:\Python24\Lib\site-packages\wx-2.5.3-msw-ansi > folder. > > > I just now went through and (tediously) replaced the wx* with wx.* > Global search and replace went well except for the wxI* =>> wx.I* which > munged the wxID_FRAME1*, but once done, that case was undone with wx.ID_ > =>> wxID_, leaving the rest OK. > > Global S&R for wxA*, wxB*, wxC*, wxD, wxE*, wxF*, wxP*, wxS*, and all > others went well; maybe a list of non-colliding S&R strings could be > formulated and added to the updater. Of course these might collide with > some case I don't use. > > The new imports required a few S&R changes like wxGrid =>> wx.grid.Grid. > >> Ray S wrote: >> >>> BTW, >>> I also found that wxPyPlot's wx.wxDOT (a pen style) had to be changed >>> to wxDOT. >> >> >> The new version of wxPyPlot is under wx.lib.plot. >> This new version should not have these problems. >> (Boa also includes the PyPlot plug-in by default now). > > > I cheated for now and used: from wx.lib.plot import * > > I am reminded after re-reading the Wiki that I need to start using > wx.FramePanel... > > Thanks, > Ray > > Sorry about the dupe posts. |