migration 2.6 scrollbars

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

My 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,
jw

···

On 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