Spacer?

I don't see anything about a spacer in the wxWidgets docs. I know that
wxGlade lets me put one in a GridSizer cell, but I've badly trashed the .wxg
file trying to add additional rows to the container. I've added the rows in
the .py file, but I want to space them other than the default positions.

   Can you point me to the syntax for adding a spacer?

Thanks,

Rich

···

--
Dr. Richard B. Shepard, President | 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

In wxGlade, right click onto the sizer icon, chose "add row", and add as many
as you like

If you want to move araound contents, click on the respective icons and the
object (including all children) can be cut'n'pasted anywhere (like moving
complex container objects from one sizer to another)

Horst

···

On Tue, 16 Aug 2005 09:51, Rich Shepard wrote:

I don't see anything about a spacer in the wxWidgets docs. I know that
wxGlade lets me put one in a GridSizer cell, but I've badly trashed the
.wxg file trying to add additional rows to the container.

PS: likewise, for spacers, just select them from the wxGlade tools and put
them wherever you need them, and adjust their size via properties menu

Horst

···

On Tue, 16 Aug 2005 10:51, Horst Herb wrote:

On Tue, 16 Aug 2005 09:51, Rich Shepard wrote:
> I don't see anything about a spacer in the wxWidgets docs. I know that
> wxGlade lets me put one in a GridSizer cell, but I've badly trashed the
> .wxg file trying to add additional rows to the container.

Hi Guys,
quick question:
what is the method to get all the selected strings of a wxCheckListBox. By selected I mean the ones that are ticked.
I tried using GetStringSelection but this only gets the highlighted one. How can I get all the checked item's strings?
Thanks

Horst,

   AHA! It's the sizer icon in the tree window. That's the only place I had
not tried to click. I tried on the design window and the properties window
(and, of course, on the main window).

Thanks very much,

Rich

···

On Tue, 16 Aug 2005, Horst Herb wrote:

In wxGlade, right click onto the sizer icon, chose "add row", and add as
many as you like

--
Dr. Richard B. Shepard, President | 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

I don't know if there is a better way but you could do something like
this:

# Note that this is a method inside a wxCheckListBox derived class
def GetAllCheckeds(self):
    checks=
    for i in range(self.GetCount()):
        if self.IsChecked(i):
           checks.append(self.GetString(i))
    return checks

PS: Code not checked.

Ricardo

···

On Tue, 2005-08-16 at 11:45 +1000, Astan Chee wrote:

Hi Guys,
quick question:
what is the method to get all the selected strings of a wxCheckListBox.
By selected I mean the ones that are ticked.
I tried using GetStringSelection but this only gets the highlighted one.
How can I get all the checked item's strings?
Thanks

Yeah, I have something along the lines of that…so it seems that
iteration is the only way? oh well…thanks!

Ricardo Pedroso wrote:

···

wxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.org

Monday, August 15, 2005, 10:45:43 PM, Astan Chee wrote:

Hi Guys,
quick question:
what is the method to get all the selected strings of a wxCheckListBox.
By selected I mean the ones that are ticked.
I tried using GetStringSelection but this only gets the highlighted one.
How can I get all the checked item's strings?
Thanks

Create the wx.CheckListBox with a style = wx.LB_EXTENDED and use its
GetSelection() method to return a tuple of items currently checked.

-- tacao

No bits were harmed during the making of this e-mail.