473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

(OT) Boa Constructor and Python 2.3.4

Hi,

i'm trying to get boa constructor working with Python 2.3.4
At first i tried with boa 0.2.3 but that gave me an error. After
searching the web, it appeared that it's best to work with the
CVS version. Well, i checked that version out and moved it
to C:\Python23\Lib\site-packages\wxPython\tools\boa
When i then try to run it "python boa.py" it gives me this
output (windows 2000):

C:\Python23>C:\Python23\python.exe
C:\Python23\Lib\site-packages\wxPython\tools\boa\boa.py
Starting Boa Constructor v0.2.8
importing wxPython
reading user preferences
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\wxPython\tools\boa\boa.py", line 231,
in ?
import Preferences, Utils, About
File "C:\Python23\Lib\site-packages\wxPython\tools\boa\Preferences.py",
line 130, in ?
execfile(file)
File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Config\prefs.rc.py", line
25, in ?
splitterStyle = wxCLIP_CHILDREN | wxSP_LIVE_UPDATE | \
NameError: name 'wxSP_FULLSASH' is not defined

My wxPython is version 2.5.1.5u.
Any ideas?

Kind regards,
Benedict
Jul 18 '05 #1
8 2238
On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexistingdomain.com> wrote:
Hi,

My wxPython is version 2.5.1.5u.
Any ideas?


AFAIK the CVS version only works with wyPython 2.4.
Jul 18 '05 #2

"Lothar Scholz" <du***@scriptolutions.com> schreef in bericht
news:ha********************************@4ax.com...
On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexistingdomain.com> wrote:
Hi,

My wxPython is version 2.5.1.5u.
Any ideas?


AFAIK the CVS version only works with wyPython 2.4.


Hhhmm. Bummer. I wanted to use it to quickly get a wxPython app
going as i'm pretty new to Python & wxWindows.
Well, i guess i can also "type" :)
Are there any other screen designers (i've tried wxGlade but it
seems a bit limited)

Benedict
Jul 18 '05 #3
I have installed (& run) boa on W2K and XP. On my home machine never any
probs, but at work on W2K and XP I found I had to edit 3 files / classes.
I hope this may help you
I've just installed python 2.2, wxpython 2.4, and Boa Constructor 0.2.0, on
win 2000 sp3.
When I click on the boa.py file, I get the Boa splash, and an 'Error
on startup" dialog with the details; '"global name 'string' is not defined".
Any thoughts?
Thanks
Ant (New to Python)


By: antonahill ( ant hill )
RE: error on startup
2003-01-27 03:59

Hi
I have it running.
I had to add 'string' to the Import statement at the beginning of
these files:
About.py, StyledTextCtrls.py, and PropertyEditors.py
regards
Darren
"flupke" <fl****@nonexistingdomain.com> wrote in message
news:f%*******************@hebe.telenet-ops.be...
Hi,

i'm trying to get boa constructor working with Python 2.3.4
At first i tried with boa 0.2.3 but that gave me an error. After
searching the web, it appeared that it's best to work with the
CVS version. Well, i checked that version out and moved it
to C:\Python23\Lib\site-packages\wxPython\tools\boa
When i then try to run it "python boa.py" it gives me this
output (windows 2000):

C:\Python23>C:\Python23\python.exe
C:\Python23\Lib\site-packages\wxPython\tools\boa\boa.py
Starting Boa Constructor v0.2.8
importing wxPython
reading user preferences
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\wxPython\tools\boa\boa.py", line 231, in ?
import Preferences, Utils, About
File "C:\Python23\Lib\site-packages\wxPython\tools\boa\Preferences.py",
line 130, in ?
execfile(file)
File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Config\prefs.rc.py", line 25, in ?
splitterStyle = wxCLIP_CHILDREN | wxSP_LIVE_UPDATE | \
NameError: name 'wxSP_FULLSASH' is not defined

My wxPython is version 2.5.1.5u.
Any ideas?

Kind regards,
Benedict



Jul 18 '05 #4
On Tue, 15 Jun 2004 11:49:48 GMT, "flupke"
<fl****@nonexistingdomain.com> wrote:

"Lothar Scholz" <du***@scriptolutions.com> schreef in bericht
news:ha********************************@4ax.com.. .
On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexistingdomain.com> wrote:
>Hi,
>
>My wxPython is version 2.5.1.5u.
>Any ideas?
>


AFAIK the CVS version only works with wyPython 2.4.


Hhhmm. Bummer. I wanted to use it to quickly get a wxPython app
going as i'm pretty new to Python & wxWindows.
Well, i guess i can also "type" :)
Are there any other screen designers (i've tried wxGlade but it
seems a bit limited)

Benedict

Maybe WxDesigner, but commerical and looks a little bit strange when
you use it the first time.
Jul 18 '05 #5

"flupke" <fl****@nonexistingdomain.com> wrote in message
news:f%*******************@hebe.telenet-ops.be...
C:\Python23>C:\Python23\python.exe
C:\Python23\Lib\site-packages\wxPython\tools\boa\boa.py
Starting Boa Constructor v0.2.8
importing wxPython
reading user preferences
Comments based on traceback and no knowledge of boa specifically. Since
you just asked for 'ideas' without giving specific questions or where you
get lost, I have to make some guesses.
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\wxPython\tools\boa\boa.py", line 231, in ?
import Preferences, Utils, About File "C:\Python23\Lib\site-packages\wxPython\tools\boa\Preferences.py",
line 130, in ?
execfile(file)
This executes 'file', which I presume is prefs.rc.py, *in* the current
(Preferences) module.
Preferences.py must either define or import the constants used in 'file'.
File
"C:\Python23\Lib\site-packages\wxPython\tools\boa\Config\prefs.rc.py", line 25, in ?
splitterStyle = wxCLIP_CHILDREN | wxSP_LIVE_UPDATE | \
This line appears to be continued to another line, which presumably or's in
more constants, but traceback printer does not pick that up.
NameError: name 'wxSP_FULLSASH' is not defined


I would report this to boa people. In meanwhile, to get going, I would
find where constants are defined and add missing definition -- or remove
use of it.

Terry J. Reedy


Jul 18 '05 #6
news wrote:
I have installed (& run) boa on W2K and XP. On my home machine never any
probs, but at work on W2K and XP I found I had to edit 3 files / classes.
I hope this may help you
I've just installed python 2.2, wxpython 2.4, and Boa Constructor 0.2.0, on
win 2000 sp3.
When I click on the boa.py file, I get the Boa splash, and an 'Error
on startup" dialog with the details; '"global name 'string' is not defined".
Any thoughts?
Thanks
Ant (New to Python)


By: antonahill ( ant hill )
RE: error on startup
2003-01-27 03:59

Hi
I have it running.
I had to add 'string' to the Import statement at the beginning of
these files:
About.py, StyledTextCtrls.py, and PropertyEditors.py
regards
Darren


news,

boa 0.2.0 is a really old version.
I use boa 0.2.8 + python 2.3.x + wxpython 2.4.2.4
get boa 0.2.8. from:

http://boa-constructor.sourceforge.n...8-snapshot.tgz

Currently boa isn't ready for wxpython 2.5.x!

Uwe
Jul 18 '05 #7


flupke wrote:
"Lothar Scholz" <du***@scriptolutions.com> schreef in bericht
news:ha********************************@4ax.com.. .

On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexistingdomain.com> wrote:
Hi,

My wxPython is version 2.5.1.5u.
Any ideas?

AFAIK the CVS version only works with wyPython 2.4.


Hhhmm. Bummer. I wanted to use it to quickly get a wxPython app
going as i'm pretty new to Python & wxWindows.
Well, i guess i can also "type" :)
Are there any other screen designers (i've tried wxGlade but it
seems a bit limited)

Just revert your wxPython install down to version 2.4.2. That's what I
did, anyway. In the end I found that I was too inept to be able to make
Boa-Constructor work and ended up writing it by hand. A big problem I've
found with wxPython in general is that the tracebacks it provides never
link back to your code. The traceback stays exclusively in the
site-packages/wxPython/ directory, which means that if you're relying on
Boa Constructor to make your GUI code you'll never figure out what the
hell is wrong. Better to either write it yourself or make a dummy
project where you test things out on BC then move selected changes over
to your app. It's kinda ghetto but it worked for me.

Gabriel.

Jul 18 '05 #8
"flupke" <fl****@nonexistingdomain.com> schreef:

(Hallo mede-pandoriaan ;-)
Hhhmm. Bummer. I wanted to use it to quickly get a wxPython app
going as i'm pretty new to Python & wxWindows.
Well, i guess i can also "type" :)
Are there any other screen designers (i've tried wxGlade but it
seems a bit limited)


There is XRCed too: <http://xrced.sourceforge.net/>
(it's included with wxPython IIRC)

If you want "easier hand-coding" based on wxPython you might want to try:
- Wax <http://zephyrfalcon.org/moin.cgi/Wax>
- PythonCard <http://pythoncard.sourceforge.net/>

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Chris Green | last post by:
Hey folks, Is there anyway for a signal handler in python to get the information from a 3 argument signal handler rather than just the signal number and stack frame? I've got an application...
50
by: Charles Stapleton | last post by:
Given the folowing class class Ctest{ public: Ctest( int i, int j) :a(i) { b = j; } private: int a, b; } When creating an object of type Ctest, what advantage is there to setting
6
by: cppaddict | last post by:
Hi, I know that C++ does not have an explicit super() constructor for calling a Base class constructor from a Derived class's constructor, but my understanding is that C++ implements this...
25
by: Tim Apple | last post by:
Hello All, I would like to learn C, I have 0 programming experience. If anyone has links to good tutorials It would be appreciated, especially stuff that can be downloaded. I am in the military...
19
by: Andrew J. Marshall | last post by:
I want to create a class that must receive a parameter when instantiated. In other words, I do not want it to have a "Public Sub New()". 1) Does VB.NET create a default public constructor if I do...
4
by: Dan Stromberg | last post by:
Hi folks. I'm working on building some software, some of which is written in C++, for a researcher here at the University. I have an extensive background in C and python, but I haven't done...
6
by: HappyHippy | last post by:
More of a minor niggle than anything but how would I remove the aforementioned space? eg. strName = 'World' print 'Hello', strName, ', how are you today?' comes out as "Hello World , how are...
14
by: Gaijinco | last post by:
I used C for a long time where I could open a file for input but if the file didn't existed, then I redirected the input to the standard input, something like: FILE *id=fopen("data.in","r"); ...
0
by: 703designs | last post by:
I'm with FutureShock, both of you guys got a little too heated. But it livened up my midday a bit, for what it's worth. Thomas On Nov 10, 10:02 pm, FutureShock <futuresho...@att.netwrote:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.