I'm looking into boa-constructor as the IDE for a project I'm developping. wxRichTextCtrl support is necessary, and although it is stated as supported (and there are indeed files related to it in the directory tree after it's installed), it doesn't show in the palette. Is there anything special that needs to be done?
I'm running boa-constructor 0.6.1 under Ubuntu 9.10 (64 bits) wxWidgets 2.8.10, wxPython 2.8.10, Python 2.6.
Thanks in advance,
It shows on my as "rtf" on the "Basic Control" tab.
I never used it, so can't tell you more.
I just figured it out. Boa is configured to use wx 2.6; the richtext is available only in 2.8.
It took me an inordinate amount of time to figure out how to change the option, until I found the -W switch on the command line, now I am a happy camper. :)
Incidentally, is there a how-to on how to add items to the palette? I'd like to add the wxAUI components as well.
Thanks for the reply,
That is strange, it has a minimum of wxPython 2.5, so you must have 2.6 defined as your default wxPython version.
Check wx.pth in site-packages.
Regarding adding components to the palette:
- in the editor press ctrl-h and enter "extending boa" that should show you the help.
Something like wxAUI or maybe beter pyAUI (Andrea Gavana's put Python implementation) is probably a pretty difficult one to do, maybe you want to have a go at this with a simpler control.
You might also want to check out the plug-ins folder, a few controls are added through that mechanism (e.g. FlatNotebook).
If you have more detailed questions then I am sure Riaan will jump in to give you some tips/help.
Yep, 2.6 was set as the default, and I almost got lost in a tangle of symlinks, but managed to change it to the correct version (curiously the only symlink that was correct was wx.pth - under Ubuntu it's under dist-packages). But even after I changed it Boa still went for 2.6…
I don't think I have the competence to do that, but I will take a look. I believe that if adding stuff to the palette were easier, that would be a major boost for python, wxpython and Boa itself. IMO one of the secrets of Delphi's success was the relative ease to create new components and make them available in the IDE.
Thanks once again,
No idea how the wxPython version stuff is working on Ubuntu.
Probably there is an easier way to do it, but I hand-edited all the symlink files changing references from 2.6 to 2.8. The problem is that some of the symlinks in dist-packages point to other symlinks under etc/alternatives, which in turn point elsewhere… I had to change three or four links which had this indirect triangulation.
It's working well now. :)
I use Boa Constructor on Ubuntu and it shows the RichTextCtrl. I have Ubuntu Intrepid (64), Boa 0.6.1-4, wxPython 2.8.10 and Python 2.5. I can't recall if I got Boa through Synaptic or if I had to download it from the site, but I didn't have to do anything special beyond that.
There are a number of issues that I've had with using Boa on Linux, which perhaps will be getting worked on, but in the meantime if you have questions about it I might be able to help.
Thanks a lot for the offer. As I wrote before, I found out that the problem was that Boa was using the wrong wx version; at first, the python interpreter in Ubuntu was configured to use wx 2.6 instead of 2.8, and I managed to set it (although by a very work-intensive approach, most certainly there is a less dumb way of doing it). To my surprise, Boa was still pointing to it, so I had to use the -W command line switch (I edited the script that invokes Boa). So far so good.
I'm really at the beginning of the beginning, I don't have any meaningful question now, but in the (hopefully near) future I'll take you on that.
Thanks once again,
OK, Ken. If something like this comes up again, maybe the less intense way would be to (maybe) download Boa from source and use that, as sometimes, depending on which way you put Boa on your system, it can refer to the wrong wxPython version. My description of my experience was intended to give at least one data point that it is not always necessary to do all the laborious steps you did, because I didn't (although it's possible it is some difference between Ubuntu 9.10 and Intrepid, or between Python 2.5 and 2.6?). Good luck.
Log in to post a comment.