473,651 Members | 3,012 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(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\wxPyth on\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\wxPyth on\tools\boa\bo a.py
Starting Boa Constructor v0.2.8
importing wxPython
reading user preferences
Traceback (most recent call last):
File "C:\Python23\Li b\site-packages\wxPyth on\tools\boa\bo a.py", line 231,
in ?
import Preferences, Utils, About
File "C:\Python23\Li b\site-packages\wxPyth on\tools\boa\Pr eferences.py",
line 130, in ?
execfile(file)
File
"C:\Python23\Li b\site-packages\wxPyth on\tools\boa\Co nfig\prefs.rc.p y", line
25, in ?
splitterStyle = wxCLIP_CHILDREN | wxSP_LIVE_UPDAT E | \
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 2269
On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexis tingdomain.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***@scriptol utions.com> schreef in bericht
news:ha******** *************** *********@4ax.c om...
On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexis tingdomain.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****@nonexis tingdomain.com> wrote in message
news:f%******** ***********@heb e.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\wxPyth on\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\wxPyth on\tools\boa\bo a.py
Starting Boa Constructor v0.2.8
importing wxPython
reading user preferences
Traceback (most recent call last):
File "C:\Python23\Li b\site-packages\wxPyth on\tools\boa\bo a.py", line 231, in ?
import Preferences, Utils, About
File "C:\Python23\Li b\site-packages\wxPyth on\tools\boa\Pr eferences.py",
line 130, in ?
execfile(file)
File
"C:\Python23\Li b\site-packages\wxPyth on\tools\boa\Co nfig\prefs.rc.p y", line 25, in ?
splitterStyle = wxCLIP_CHILDREN | wxSP_LIVE_UPDAT E | \
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****@nonexis tingdomain.com> wrote:

"Lothar Scholz" <du***@scriptol utions.com> schreef in bericht
news:ha******* *************** **********@4ax. com...
On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonexis tingdomain.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****@nonexis tingdomain.com> wrote in message
news:f%******** ***********@heb e.telenet-ops.be...
C:\Python23>C:\ Python23\python .exe
C:\Python23\Lib \site-packages\wxPyth on\tools\boa\bo a.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\Li b\site-packages\wxPyth on\tools\boa\bo a.py", line 231, in ?
import Preferences, Utils, About File "C:\Python23\Li b\site-packages\wxPyth on\tools\boa\Pr eferences.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\Li b\site-packages\wxPyth on\tools\boa\Co nfig\prefs.rc.p y", line 25, in ?
splitterStyle = wxCLIP_CHILDREN | wxSP_LIVE_UPDAT E | \
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***@scriptol utions.com> schreef in bericht
news:ha******* *************** **********@4ax. com...

On Tue, 15 Jun 2004 10:15:39 GMT, "flupke"
<fl****@nonex istingdomain.co m> 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****@nonexis tingdomain.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.sourcefor ge.net/>
(it's included with wxPython IIRC)

If you want "easier hand-coding" based on wxPython you might want to try:
- Wax <http://zephyrfalcon.or g/moin.cgi/Wax>
- PythonCard <http://pythoncard.sour ceforge.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
2606
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 where I have to check for F_SETLEASE on a file in python on Linux 2.4. What this does is tells the kernel to notify the current process with SIGIO that a particular file descriptor is being modified by another process.
50
3804
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
4978
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 functionality via its initialization list. Say I have a Base class with a constructor that looks like: Base::Base(int x) {
25
2293
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 and will be spending the next year in Iraq. I will have my laptop with me and will use my free time to learn, but I will have no net access. So whatever I can get on my hard drive to bring with would be appreciated. Thanks Sgt Tim Apple
19
6544
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 not declare one? 2) I've read that I can have a "Private Sub New()" which should take care of my needs. Comments? Thanks, Andrew
4
1887
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 much with C++ - I kind of mostly abandoned C++ some time ago, when I coded a project in C++, and some of my coworkers refused to use it -because- it was in C++.
6
1501
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 you today?" Have googled, and worked my way through the first 7 chapters of Byte of
14
2322
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"); if(!id) id=stdin; I have read about streams but I haven't found how to do it, I suppose
0
417
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
8361
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8584
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7299
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2701
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1912
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.