RJS | 3 Nov 2003 06:11
Picon

setting sizers in Boa?

Hi all,

I've been trying vainly to get sizers added to a notebook app I've started. 
So, I set up a simple notebook with one page, and a plot, slider and button 
on it.
I want the slider and button in one row at the bottom to have static 
height, and the PyPlot to always grow to the rest of the page (horizontally 
and vertically) as the app is resized.

Can someone give a run-through as to the order of what to do in the IDE? 
I've been trying a flex-grid, and nested boxsizers as in the example 
SizersInBoa.py, but I'm evidently doing something wrong, as Boa has crashed 
15+ times at various points with flex-sizers and I could never create a 
working sizer example. (It all works very nicely otherwise, Win2K, Py2.2, 
Boa 0.2.7 from CVS.)  I made the example below with nested boxsizers, but I 
can't get the PyPlot to grow and always fill the screen, with minimum space 
for the slider.

Ray
http://rjs.org/astro

Base example below, nested box sizer:

#Boa:Frame:wxFrame1

from wxPython.wx import *
from wxPyPlot.wxPyPlot import PlotCanvas

def create(parent):
     return wxFrame1(parent)
(Continue reading)

RayS | 3 Nov 2003 20:31
Favicon

setting sizers in Boa?

Hi all,

I've been trying vainly to get sizers added to a notebook app I've started. 
So, I set up a simple notebook with one page, and a plot, slider and button 
on it.
I want the slider and button in one row at the bottom to have static 
height, and the PyPlot to always grow to the rest of the page (horizontally 
and vertically) as the app is resized.

Can someone give a run-through as to the order of what to do in the IDE? 
I've been trying a flex-grid, as well as  nested boxsizers as in the 
example SizersInBoa.py, but I'm evidently doing something wrong, as Boa has 
crashed 15+ times at various points with flex-sizers and I could never 
create a working sizer example. (It all works very nicely otherwise, Win2K, 
Py2.2, Boa 0.2.7 from CVS.)  I made the example below with nested 
boxsizers, but I can't get the PyPlot to grow and always fill the screen, 
with minimum space for the slider.

Ray
http://rjs.org/astro

Base example below, nested box sizer:

#Boa:Frame:wxFrame1

from wxPython.wx import *
from wxPyPlot.wxPyPlot import PlotCanvas

def create(parent):
     return wxFrame1(parent)
(Continue reading)

RayS | 3 Nov 2003 22:19
Favicon

setting sizers in Boa?

Just answered my own question.

Open designer
click containers/layout -> boxsizer
click the panel to add to
click sizers tab
dbl-click boxsizer1
click new button
go to inspector -> window, select a widget (plotCanvas, for me)
in sizer pop-up, click 'more new' button
add sizer
click sizers tab
dbl-click boxsizer2
click new button
go to inspector -> window, select widgets
highlight plotcCanvas in the sizer boxsizer1 pop-up window
in properties, set proportion to 1, flag to wxExpand
highlight boxSizer2 in the sizer boxsizer1 pop-up window
in properties, set proportion to 0, flag to wxExpand
highlight slider1 in the sizer boxsizer2 pop-up window
in properties, set proportion to 1, flag to wxExpand
save
enjoy
(then link slider methods to manipulate the plotCanvas's arrays and re-plot)

Ray

Sample code below:

#Boa:Frame:wxFrame1
(Continue reading)

Bobirkhon Ismailov | 4 Nov 2003 09:55

designer window button

Hi,

Sometimes the frame desinger button on the tool bar of 
Editor window is not visible. I mean I can't start up the 
Designer window in Boa Constructor. 

It's visible when I work with the tutorial examples. But 
when I started a new project, I can't get it.

Thank you.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
POYEN OP Olivier (DCL | 4 Nov 2003 10:21

RE: designer window button


-----Message d'origine-----
De : Bobirkhon Ismailov [mailto:bismailov@...]
Envoyé : mardi 4 novembre 2003 09:55
À : boa-constructor-users@...
Objet : [Boa Constr] designer window button

Hi,

Sometimes the frame desinger button on the tool bar of 
Editor window is not visible. I mean I can't start up the 
Designer window in Boa Constructor. 

It's visible when I work with the tutorial examples. But 
when I started a new project, I can't get it.

Thank you.

Because a new project is not a frame for Boa, and thus, Boa can not create a designer for a not-existing frame.
Same stuff for a blank .py file.

If you want to be sure to have access to the designer, create a new frame, with file new -> wxframe or with panel
button in the palette.
Then, you'll get a canvas for a new frame, and, on that one, you'll be able to launch the Designer.

May be, if you try to see what makes a frame for Boa you could enforce the designer for any file.
But I won't try that. 
Stick to the "new frame" and let Boa handle the little stuff for you. 

---OPQ
(Continue reading)

Riaan Booysen | 4 Nov 2003 23:32
Picon

Re: setting sizers in Boa?

Hi Ray,

Glad to hear you figured it out in the end.

RJS wrote:
> SizersInBoa.py, but I'm evidently doing something wrong, as Boa has 
> crashed 15+ times at various points with flex-sizers and I could never 
> create a working sizer example. 

I have fixed every reproduceable sizer crash that has been reported so
far, please send me the instructions to cause a crash and I'll do my
best.

Cheers,
Riaan.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Riaan Booysen | 4 Nov 2003 23:32
Picon

Re: designer window button

Hi Bobirkhon,

Bobirkhon Ismailov wrote:
> Hi,
> 
> Sometimes the frame desinger button on the tool bar of 
> Editor window is not visible. I mean I can't start up the 
> Designer window in Boa Constructor. 
> 
> It's visible when I work with the tutorial examples. But 
> when I started a new project, I can't get it.

I think you are missing a simple but very important feature of
the IDE. The tool buttons available (and also the menus)
applies to the current file open in the Editor window.
So if you don't have a frame type module as the active file,
you won't see the Designer tool button.

I hope this was the problem,
Riaan.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Paul Sorenson | 5 Nov 2003 12:08

fractionWidth error in wxMaskNumCtrl

I got the following error when I tried to set the fractionWidth in the
object editor for a wxMaskedNumCtrl.  I am using boa 0.2.7 and wsPython
2.4.2.4 under python 2.3 (windows).

22:03:12: Traceback (most recent call last):
22:03:12:   File
"C:\usr\Python23\Lib\site-packages\wxPython\tools\boa\Inspector.py",
line812, in OnSelect
22:03:12:     self.inspector.propertySelected(self)
22:03:12:       File
"C:\usr\Python23\Lib\site-packages\wxPython\tools\boa\Inspector.py", line
1066, in propertySelected
22:03:12:     self.prevSel.hideEditor()
22:03:12:       File
"C:\usr\Python23\Lib\site-packages\wxPython\tools\boa\Inspector.py", line
792, in hideEditor
22:03:12:     self.propEditor.inspectorPost()
22:03:12:       File
"C:\usr\Python23\Lib\site-packages\wxPython\tools\boa\PropEdit\PropertyEdito
rs.py", line 148, in inspectorPost
22:03:12:     self.setCtrlValue(cv, v)
22:03:12:       File
"C:\usr\Python23\Lib\site-packages\wxPython\tools\boa\PropEdit\PropertyEdito
rs.py", line 211, in setCtrlValue
22:03:12:     self.propWrapper.setValue(value)
22:03:12:       File
"C:\usr\Python23\Lib\site-packages\wxPython\tools\boa\RTTI.py", line 70, in
setValue
22:03:12:     self.setter(self.ctrl, value)
22:03:12:       File
(Continue reading)

Jason Tesser | 5 Nov 2003 15:41

newbie question

Is boa mainly for Zope or can it be used effeftivly for real standalone applications.  I have been looking at
Black Adder
but it has some problems.  I have looked into Komodo also.  Does anyone have any opinions in this area?

Jason Tesser
Web/Multimedia Programmer
Northland Ministries Inc.
(715)324-6900 x3050

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Derek Croxton | 5 Nov 2003 21:34
Picon
Favicon

Help files

I'm fairly new to Python and wxPython, and I want to say that Boa
Constructor is great.  It has sped up and simplified my programming in
Python enormously.

One problem:  I'm not getting the Python help files (or the wxPython
help files either, for that matter).  I read the FAQ, and all of my
.cfg files that I could find (Explorer.gtk.cfg, Explorer.msw.cfg, and
helpfrm.cfg) have python/python.hhp.  I don't know if I put them in a
wrong directory to start with, or what, but I would appreciate it if
someone could help.  Thanks.

=====
Sincerely,
Derek

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/

Gmane