Werner F. Bruhin | 2 Nov 2005 13:17
Picon
Favicon

Your list problem

Hi Claudio,

I assume you want to show some data from a database, for this I think 
the wx.ListCtrl is a better widget, instead of the wx.TextCtrl, so I 
modified frame6.py file (see attached).

What did I do:
- replaced the textctrl with a listctrl
- copied some code from the listctrl sample in the wxPython demo to make 
a minimum working sample
- copied the images.py file from the wxPython demo to get the images for 
the listctrl

What you might want to do:
- look at the demo of the wx.ListCtrl in more details
  - if you have lots of data (thousands of rows) then you should look at 
the virtual sample
  - if you have not so much then the basic one (which I used) is fine, 
however you could take some more from the demo to have dynamic sorting 
if you click on the headers and/or automatic sizing of the columns.  If 
you want to do this you should create a module/class based on the demo 
sample and include it in your Boa code using the custom_class support.
- change the data stuff to get things from your database.

Hope this helps
Werner
Attachment (Frame6.py): application/x-python, 6647 bytes
Picon
Favicon

R: Boa-constructor-users digest, Vol 1 #892 - 1 msg

thanks thousands!  hour I am succeeding, the call lacks me only the 
list and thanks to of the Array are successful to create a module that 
generates the dictionaries automatically!  You would say where I can 
find the wxPython to me demos that on www.wxpython.org I do not find 
them?  Thanks still, Claudio

P.S.
As I can resume this argument on the 
user-list

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Javier Marquez | 3 Nov 2005 16:45

RE: Boa-constructor-users digest, Vol 1 #892 - 1 msg


-----Original Message-----
From: boa-constructor-users-admin@...
[mailto:boa-constructor-users-admin@...] On
Behalf Of
boa-constructor-users-request@...
Sent: jueves, 03 de noviembre de 2005 5:16
To: boa-constructor-users@...
Subject: Boa-constructor-users digest, Vol 1 #892 - 1 msg

Send Boa-constructor-users mailing list submissions to
	boa-constructor-users@...

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
or, via email, send a message with subject or body 'help' to
	boa-constructor-users-request@...

You can reach the person managing the list at
	boa-constructor-users-admin@...

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Boa-constructor-users digest..."

Today's Topics:

   1. Your list problem (Werner F. Bruhin)

--__--__--

(Continue reading)

Werner F. Bruhin | 4 Nov 2005 21:42
Picon
Favicon

Re: new version, problem half-resolved

Hi Claudio,

kalvinator@... wrote:

>the problem nearly is resolved:  finally I have fato to work the list 
>partially, but the only thing that does not succeed to me is the 
>visualization of the elements.
>All it is perfect except that one.
>If 
>please you could they give one to us glanced at you I would be some 
>recognizing.
>
>Thanks many,
>Claudio
>
>
>P.S.
>You are French?
>
I copied this to the list for the archive, can you please respond to the 
list (the individual mail not the summary).

I assume your database is some text file, so I just used one which has 
"user name comma password", if you have another format you need to 
change it a bit.

I think I did what you wanted just with fewer lines, but I might have 
mis-understood what you want.

Note that I moved the header creating out to a separate method as it 
(Continue reading)

Werner F. Bruhin | 5 Nov 2005 12:49
Picon
Favicon

Re: new version, problem half-resolved

Hi Claudio,

A few more things:

- Are you using the textctrl1 for testing?  If yes, you might just want 
to use "print variablename", this will show you the content of the 
variable after you close the application in the Boa output window 
(bottom of screen).

- Or if you need something more interactive then use the Boa debugger, 
on the source code line you are interested in set a breakpoint (F5) and 
run the application by using the red arrow or File/Debug application or F4.

See you
Werner

Werner F. Bruhin wrote:
> Hi Claudio,
> 
> kalvinator@... wrote:
> 
>> the problem nearly is resolved:  finally I have fato to work the list 
>> partially, but the only thing that does not succeed to me is the 
>> visualization of the elements.
>> All it is perfect except that one.
>> If please you could they give one to us glanced at you I would be some 
>> recognizing.
>>
>> Thanks many,
>> Claudio
(Continue reading)

Picon
Favicon

R: Boa-constructor-users digest, Vol 1 #894 - 1 msg


----Messaggio originale----
Da: boa-constructor-users-request <at> lists.
sourceforge.net
Data: 5-nov-2005 5.03
A: <boa-constructor-users <at> lists.
sourceforge.net>
Ogg: Boa-constructor-users digest, Vol 1 #894 - 1 msg

Send Boa-constructor-users mailing list submissions to
	boa-constructor-
users@...

To subscribe or unsubscribe via the World 
Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/boa-
constructor-users
or, via email, send a message with subject or body 
'help' to
	boa-constructor-users-request@...

You can 
reach the person managing the list at
	boa-constructor-users-
admin@...

When replying, please edit your Subject 
line so it is more specific
than "Re: Contents of Boa-constructor-users 
digest..."
(Continue reading)

Rich Shepard | 11 Nov 2005 00:06
Favicon

Tutorial Not Working as Expected

   Today I downloaded and installed 0.4.4, and I'm working my way through the
tutorial. The status bar worked just fine, but I'm having difficulties with
the menus.

   I created both the file and help menus and then the menu bar. However, when
I run the application, the File menu does not show the sub-menu items
(there's only a small box immediately to the left of the "F"), and the Help
menu shows two items: Help and About. I don't see a problem with the code,
so I cannot figure out why it's not displaying and working as expected.

Suggestions?

Rich

--

-- 
Richard B. Shepard, Ph.D.               |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com>     Voice: 503-667-4517         Fax: 503-667-8863

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Werner F. Bruhin | 11 Nov 2005 11:48
Picon
Favicon

Re: Tutorial Not Working as Expected

Hi Rich,

Rich Shepard wrote:

>   Today I downloaded and installed 0.4.4, and I'm working my way through 
> the
> tutorial. The status bar worked just fine, but I'm having difficulties with
> the menus.
> 
>   I created both the file and help menus and then the menu bar. However, 
> when
> I run the application, the File menu does not show the sub-menu items
> (there's only a small box immediately to the left of the "F"), and the Help
> menu shows two items: Help and About. I don't see a problem with the code,
> so I cannot figure out why it's not displaying and working as expected.
> 
> Suggestions?
I think you got a reply on wxPython, which sounded correct to me.  You 
need to set the property "Menu" in the property editor for each item in 
the menubar to point to the menu it should show/open, in your case the 
item File should point to self.menuFile.
> 
> Rich
> 
See you
Werner

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
(Continue reading)

Rich Shepard | 11 Nov 2005 17:44
Favicon

Re: Re: Tutorial Not Working as Expected

On Fri, 11 Nov 2005, Werner F. Bruhin wrote:

> I think you got a reply on wxPython, which sounded correct to me.

Werner,

   I just re-subscribed to the wxPython list, so I missed what was posted
there yesterday.

> You need to set the property "Menu" in the property editor for each item in
> the menubar to point to the menu it should show/open, in your case the item
> File should point to self.menuFile.

   The menubar is what is seen along the top of the window, and contains the
major menu categories, correct? I access the property editor for that from
where? Here's what I've done:

   In the editor window I click the Frame Designer icon, and that opens the
window under development. It also presents the data tab in the editor window
so that each menubar item is visible. If I click on the top item, "menuFile:
Menu", the inspector window changes, but the property tab has only two items:
EvtHandlerEnabled and Items. So, I'm not looking in the correct place. Where
should I be, please?

Thanks,

Rich

--

-- 
Richard B. Shepard, Ph.D.               |   Author of "Quantifying Environmental
(Continue reading)

Rich Shepard | 11 Nov 2005 18:08
Favicon

Re: Re: Tutorial Not Working as Expected

On Fri, 11 Nov 2005, Rich Shepard wrote:

> So, I'm not looking in the correct place. Where should I be, please?

   I think that I'm getting closer. In the Data tab of the editor window, when
I click on the menubar1:menubar line I see the properties in the inspector
window, and there's a "Menus" property there. The attribute is (Menus). If I
click on the attribute, the composer window pops up with all top-level menu
items listed. What is there to change here?

Thanks,

Rich

--

-- 
Richard B. Shepard, Ph.D.               |   Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM)   |  Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com>     Voice: 503-667-4517         Fax: 503-667-8863

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Gmane