472,808 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,808 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 2210
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:02pm, FutureShock <futuresho...@att.netwrote:
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.