954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Dialog Window doesn't show, Designer won't open

Greetings:
I am chugging thru Boa Help
Getting Started Guide for Boa Constructor , Kevin Gill , November 1, 2000
and am at Section: 2.7 Creating a Dialog Window
doing everything as specified in Help, Save/Run and click on Help/About , no Dialog comes up. [Frame2.py , App2.py , Dialog2.py]

When I open module Dialog2.py , then click on Designer , I get the following errors:

7:45:59 PM: Traceback (most recent call last):
7:45:59 PM: File "Models\wxPythonControllers.pyc", line 78, in OnDesigner
7:45:59 PM: File "Models\wxPythonControllers.pyc", line 141, in showDesigner
7:45:59 PM: File "Views\Designer.pyc", line 113, in __init__
7:45:59 PM: AttributeError: 'NoneType' object has no attribute 'params'

See 'Attachments' area? [How come attachments doesn't allow *.py files?]
1) How come Dialog does not show?
2) How to fix for errors above?
Thanks...

vmars
Junior Poster in Training
54 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

That is a pretty old book. The BOA IDE and wxPython have changed quite a bit since then.

Without your code, help would be hard to give.

ZZucker
Master Poster
702 posts since Jan 2008
Reputation Points: 327
Solved Threads: 46
 

That is a pretty old book. The BOA IDE and wxPython have changed quite a bit since then.

Without your code, help would be hard to give.

Yes, I tried to Attach files, but it didn't take. Seems that .py is not one of the supported file types. But I'll try again here [changing .py to .txt]:

Attachments App2.txt (0.46KB) Dialog2.txt (0.43KB) Frame2.txt (5.31KB)
vmars
Junior Poster in Training
54 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

I mysteriously got past the Designer prob.
But now cant' open Dialog2 frame.
So I'l post as new prob.

vmars
Junior Poster in Training
54 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

I think BOA isn't for NewBie. I say this because text editor is best for learning actual coding. I'm talking about using IDE's Wxpython GUI builder. If you use it as Editor and and run directly scripts fine.

I will suggest building GUIs with your hand-on-keyboard programming instead of dag-and-drop building.

You can use any editor (so many there) for practicing, and when you start massive coding, then IDE is for you

Just MHO
Steve

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

I'm talking about using IDE's Wxpython GUI builder. If you use it as Editor and and run directly scripts fine.

Just MHO Steve


[IDE's Wxpython GUI builder]
Do you mean IDLE, or does Wxpython, have a separate GUI builder.
Thanks!

vmars
Junior Poster in Training
54 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

For a simple BOA test program using a frame and a dialog see:
http://www.daniweb.com/forums/post722453-3.html

You can use other IDE's to create wxPython programs, but they won't necessarily have drag and drop builders. The builder just creates your widget base, you have to learn where to add your own code to make it all work. If you edit in the wrong places to add your code, the designer may balk at opening the code for further widget additions.

sneekula
Nearly a Posting Maven
2,427 posts since Oct 2006
Reputation Points: 961
Solved Threads: 212
 
[IDE's Wxpython GUI builder] Do you mean IDLE, or does Wxpython, have a separate GUI builder. Thanks!

BOA have got GUI builder. I wonder if you are using that to make your GUIs. If so I was advising to stop using drage and drop thing and do it fro scratch

Apart from Boa & WxDesigner (Which I have never tested) I don't know any other builder with D&D feature! Just as sneekula said

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

Turns out:
When I get the Boa Error msg:
"AttributeError: 'NoneType' object has no attribute 'params'"
If I save files, shutdown Boa,
then ReStart Boa, all is well.
Cute huh!

vmars
Junior Poster in Training
54 posts since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You