ListBox horizontal scrollbar does not go away

59 views
Skip to first unread message

ytub...@gmail.com

unread,
Oct 22, 2016, 7:32:43 AM10/22/16
to wxPython-users
Hi,

I'm on a Linux XFCE machine with wxPython 3.0.2.0 installed.

I have an wx.ListBox widget with some items. When i add a new item that is long
the horizontal scrollbar appears, if i remove the item the horizontal scrollbar is still there.
To reproduce:
  1. run test.py
  2. click "button" to add the long item (the horizontal scrollbar should appear)
  3. click "button" again to remove it (the horizontal scrollbar is still there)

Is there a way to remove the scrollbar?

NOTES

- On Windows 7 the scrollbar does not appear so the problem does not exist.

- Changing theme does not make a difference.

- I search the group/google and i only managed to find those two issues, that might have something to do with my problem:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=27201
    http://mailman.daa.com.au/cgi-bin/pipermail/pygtk/2006-March/011914.html

test.py

John Fabiani

unread,
Oct 24, 2016, 6:12:24 PM10/24/16
to wxpython-users
Could this issue be because of the interaction between GTK and XFCE?  It appears to work with KDE ( again that is the interaction between GTK  and KDE).  Have you tried other managers? Other distro's?

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Talbert

unread,
Oct 24, 2016, 8:43:12 PM10/24/16
to wxpython-users
I see it on GNOME 3 also so it's not just XFCE.

On Mon, 24 Oct 2016, John Fabiani wrote:

> Could this issue be because of the interaction between GTK and XFCE?  It
> appears to work with KDE ( again that is the interaction between GTK  and
> KDE).  Have you tried other managers? Other distro's?
>
> On Sat, Oct 22, 2016 at 4:32 AM, <ytub...@gmail.com> wrote:
> Hi,
>
> I'm on a Linux XFCE machine with wxPython 3.0.2.0 installed.
>
> I have an wx.ListBox widget with some items. When i add a new
> item that is long
> the horizontal scrollbar appears, if i remove the item the
> horizontal scrollbar is still there.
> To reproduce:
> 1. run test.py
> 2. click "button" to add the long item (the horizontal
> scrollbar should appear)
> 3. click "button" again to remove it (the horizontal scrollbar
> is still there)
>
> Is there a way to remove the scrollbar?
>
> NOTES
>
> - On Windows 7 the scrollbar does not appear so the problem does
> not exist.
>
> - Changing theme does not make a difference.
>
> - I search the group/google and i only managed to find those two
> issues, that might have something to do with my problem:
>
>     https://bugs.eclipse.org/bugs/show_bug.cgi?id=27201
>    
> http://mailman.daa.com.au/cgi-bin/pipermail/pygtk/2006-March/011914.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to wxpython-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wxpython-user...@googlegroups.com.

John Fabiani

unread,
Oct 25, 2016, 11:35:28 AM10/25/16
to wxpython-users
I guess the only thing to do is to refresh the layout in the code that removes the expanded text (node).  I don't have anything very small that I can play with but I can say it works for me on KDE (I'm using openSUSE leap).  Maybe you can post something small we can take a look at to determine the real cause.


For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an

For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

youtubedlg youtubedlg

unread,
Oct 26, 2016, 5:41:53 AM10/26/16
to wxpytho...@googlegroups.com
I guess the only thing to do is to refresh the layout in the code that removes the expanded text (node).
I have tried with Refresh() & Update() but no changes, the scrollbar is still there.


Maybe you can post something small we can take a look at to determine the real cause.
There is already the test.py



You received this message because you are subscribed to a topic in the Google Groups "wxPython-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/B6o6z8qRHD8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.

John Fabiani

unread,
Oct 26, 2016, 9:09:59 AM10/26/16
to wxpython-users
re -post test.py

youtubedlg youtubedlg

unread,
Oct 27, 2016, 8:11:17 AM10/27/16
to wxpytho...@googlegroups.com
test.py
Reply all
Reply to author
Forward
0 new messages