[wxPython-users] set height of a TreeCtrlComboPopup?
C M
cmpython at gmail.com
Mon Mar 3 16:14:02 PST 2008
On Mon, Mar 3, 2008 at 2:15 PM, Robin Dunn <robin at alldunn.com> wrote:
> C M wrote:
> >
> >
> > On Fri, Feb 29, 2008 at 5:56 PM, Robin Dunn <robin at alldunn.com
> > <mailto:robin at alldunn.com>> wrote:
> >
> > C M wrote:
> > > Is there a way to set the height of the
> > > popped up area of a TreeCtrlComboPopup?
> > > (this is the ComboCtrl in the demo which
> > > pops up a TreeCtrl)
> >
> > Tweak the value returned from GetAdjustedSize.
> >
> >
> > --
> > Robin Dunn
> > Software Craftsman
> > http://wxPython.org Java give you jitters? Relax with wxPython!
> >
> >
> > Sorry, in my interest to be brief I was too brief. I see the
> > GetAdjustedSize method, but how can I access that from another class? I
> > am using the TreeCtrlComboPopup class in my app, but the main class is a
> > wxFrame. This is a beginner's question, but how can I change
> > TreeCtrlComboPopup so that I can pass it an argument for the popup
> > height such that I can use that in the GetAdjustedSize method?
>
> Add some SetPopupHeight method to the class that takes the size you want
> used and saves it as an attribute of self, and then use that value in
> GetAdjustedSize to make the wx.Size to be returned.
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
Thanks, Robin, that worked well!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200803=
03/49656608/attachment.htm
More information about the wxpython-users
mailing list