[wxPython-users] set height of a TreeCtrlComboPopup?
Robin Dunn
robin at alldunn.com
Mon Mar 3 11:15:46 PST 2008
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!
More information about the wxpython-users
mailing list