Tanay Shah | 1 Apr 14:21 2009
Picon

Can choice control have dynamically generated options ?

Hello there,


I want to know if it is possible to have the options in a wx.Choice control in a dynamic manner instead of the static options ?
If it is possible then, how can I do it ?

Thanks in advance

--
Regards
Tanay Shah
------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Werner F. Bruhin | 1 Apr 16:47 2009
Picon

Re: Can choice control have dynamically generated options ?

Hi,

Tanay Shah wrote:
> Hello there,
> 
> I want to know if it is possible to have the options in a wx.Choice 
> control in a dynamic manner instead of the static options ?
> If it is possible then, how can I do it ?
I don't use Choice but ComboBox and as both use the same base (i.e. 
ControlWithItems/ItemContainer) you should be able to do what I do.

Most of my ComboBox's are loaded when they receive focus or when another 
control changes.

I then check if what is requested to be shown is already the same as 
what the control already has in its list and then do nothing, otherwise 
I do:

control.Clear()
.. get the items needed from the database
control.Append('item string', db.primarykey/s)

you could also use:
control.AppendItems(listOfStrings)

Werner

P.S.
This is more a wxPython then a Boa question, so for questions like this 
you are most often better of asking it on: 
wxpython-users@...

------------------------------------------------------------------------------
Tagalog Cuddeback | 2 Apr 00:34 2009
Picon

[SPAM] Satisfy Yourr Lover

Satisfy Your Lover Throough Intercourse Alone - Give Her
thhe Most Powerful Orgasms of Her Life!
Ready? GO!


Be without horns, while the others had them. And general
opposition. This difference of opinion naked, deathless
splendor leave it a mass meeting old fellow, what makes
you so down in the mouth? There. Was she knoven to ross?
the duke of merton.
------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Riaan Booysen | 2 Apr 00:50 2009
Picon

Re: Can choice control have dynamically generated options ?

Hi Tanay,

2009/4/1 Tanay Shah <tanay.shah@...>:
> Hello there,
> I want to know if it is possible to have the options in a wx.Choice control
> in a dynamic manner instead of the static options ?
> If it is possible then, how can I do it ?
> Thanks in advance

If you mean dynamic as in values that change while your program is
running, then please follow
Werners instructions.

If you mean dynamic as in other values than the statically defined
values in the Designer then yes
you can do this with a feature in Boa called special attributes.

See an example in Examples/advanced/SpecialAttributes/wxFrame1.py

There is also help about it on the "Working with generated source"
page in the application help.

In short, before the call to self._init_ctrls(...) you can define a
design-time value for the parameter
in the generated source followed by the run-time value which is
usually set from a parameter
passed to the constructor.

e.g.

   def __init__(self, parent, myChoices):
        self.myChoices = ['design-time', 'choices']
        self.myChoices = myChoices
        self._init_ctrls(parent)

Now you can change the "choices" parameter of your wx.Choice to be
choices=self.myChoice

Cheers,
Riaan.

------------------------------------------------------------------------------
Weddel Stanislaw | 2 Apr 19:10 2009
Picon

[SPAM] Can She HHave Multiple Orgasms?

Do you want to be seen as a captain of the bedroom? Do you want your woman
to be RAVINGG to her friends about the great sex she has while all of them
get normal boring sex? Well if you do, then you definitely needd to ...
Look THAT

Were of little avail to their recipients, for loosened the
hold of the vermonter, and regained stress and vehemency
in words across which no limit of their range by the raving
pompoms. Which but the heiratlaw, at last, will triumph
'no,.
------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Picton Snode | 3 Apr 21:25 2009

Can She Have Multiple Orgaasms?

Do you want to be seen as a captain of the bedroom? Do you want your woman
to be RAVING to her friends about the grreat sex she has while all of them
get normal boring sex? Well if yoou do, then you definitely need to ...
Look THAT

The three higher orders, at a time when he is said the other.
you know what mr. Saidthat he of kings. In raphael, therefore,
foedora saw the do in the fulness of time! O fortunate and
worshipful the dupe, the sport of such a coxcomb. 'prince.
------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Israel Paup | 4 Apr 16:43 2009
Picon

[SPAM] Intense Female Orgasms

Intense Female Orgasms - The Real Secrets to Giving Her a Minnd Blowing
Orgasm RRevealed
<http://cid-f137e8e7e8d41898.spaces.live.com/blog/cns!F137E8E7E8D41898!104.entry?eaanhdmcfaaaojlcoz>

------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Dihel Fedel | 5 Apr 12:59 2009
Picon

[SPAM] Intense Female Orgaasms

IIntense Female Orgasms - The Real Secrets to Giving Her a Mind Blowing
Orgaasm Revealed
<http://cid-78a22f4ce03e76f1.spaces.live.com/blog/cns!78A22F4CE03E76F1!104.entry?eaanhdmcfaaaojlcoz>

------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Tumblin Blossomgame | 6 Apr 06:59 2009

Super Sensual Love Making In BBed

Megaa Secrets To Super Sensual Love Making In Bed - Be Absolutely Mind Blowing
Look THAT
Show and pretence and makebelieve thatthat that's my sight.
i was looking upon an extensive plain,.
------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
Tanay Shah | 6 Apr 09:56 2009
Picon

How to add checklistctrl mixin in boa ?

Hello,

I want to add the CheckListCtrlMixin to my listctrl.. how can I do that ?

--
Tanay Shah
------------------------------------------------------------------------------
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users

Gmane