Hmmm well I wasn't creating a sizer bc it was doing it dynakically for
me.. Using something like win.SetSize(evt.GetSize()) So now that I am
actually creating a sizer for each scrolledwindow or wxpanel what kind
of sizer do I create? I tried a box sizer but it does not take the
tuples your method is feeding it. Does this make sense?
Thanks
-Cole
···
-----Original Message-----
From: Jaime Wyant [mailto:programmer.py@gmail.com]
Sent: Wednesday, August 24, 2005 3:02 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] migration 2.6 scrollbars
Make sure you have called SetSizer().
jw
On 8/24/05, Harris, Cole <coharris@enterasys.com> wrote:
Where is the sizer that you are setting though? You call
self.GetSizer() but is self a sizer in your app? When I call this it
return szr as None.-----Original Message-----
From: Jaime Wyant [mailto:programmer.py@gmail.com]
Sent: Wednesday, August 24, 2005 2:42 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] migration 2.6 scrollbarsMy scroll bars broke too. Well, they didn't work when I dynamically
added / deleted items from a sizer. I wrote this method to help that.def _fix_scrolling(self):
"""Fixes the scrolling that seems to break when dynamically
adding and
deleting items."""
szr = self.GetSizer()
mw, mh = szr.GetMinSize()
w, h = self.GetClientSize()
self.SetVirtualSize((w,mh))It seems that the virtual size wasn't being updated correctly for some
reason or another. I typically do this in my code ->self._fix_scrolling()
self.Layout()hth,
jwOn 8/24/05, Harris, Cole <coharris@enterasys.com> wrote:
> I recently migrated from 2.5 to 2.6 and am having some issues with
my
> scroll bars. I have a wx.notebook which is embedded with wx.panel
and
I
> add wx.scrolledwindows to each panel if necessary. When I migrated
to
> the new version I lost my scroll bars. I have looked at the
migration
> guide and cannot find anything obvious that has changed. Anyone
> encounter the same problem?
> Thanks
>
> -Cole
>
> -----Original Message-----
> From: Ricardo Pedroso [mailto:ricardo.pedroso@netvisao.pt]
> Sent: Wednesday, August 24, 2005 2:09 PM
> To: wxPython-users@lists.wxwidgets.org
> Subject: Re: [wxPython-users] wx.FileDropTarget doesn't
> likewx.StaticBoxSizer?
>
> On Wed, 2005-08-24 at 19:50 +0200, Helmers, Jens Bloch wrote:
> > In the following tiny program you can drop files into the
TextCtrl.
> > If you set the variable problem=True you can not drop files into
the
> > TextCtrl.
> >
> > What's wrong with FileDropTargets inside StaticBoxSizers?
> >
> > I'm using python2.3.5, wxpython2.6.1.0-unicode on WinXPpro-SP2.
>
> See this thread, maybe it's related to:
> http://thread.gmane.org/gmane.comp.python.wxpython/24356
>
> Ricardo
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
>
>---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org