ListBox horizontal scrollbar does not go away

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

test.py (1.38 KB)

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, ytubedlg@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

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.

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, <ytubedlg@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:

       27201 – Tree does not remove horizontal scroll bar on collapse
      
      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-users+unsubscribe@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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.

···

On Mon, Oct 24, 2016 at 5:42 PM, Scott Talbert talbert@techie.net wrote:

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, ytubedlg@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](https://bugs.eclipse.org/bugs/show_bug.cgi?id=27201)

     

  [http://mailman.daa.com.au/cgi-bin/pipermail/pygtk/2006-March/011914.html](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-users+unsubscribe@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-users+unsubscribe@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-users+unsubscribe@googlegroups.com.

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

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

···

On Tue, Oct 25, 2016 at 6:35 PM, John Fabiani fabiani.john@gmail.com wrote:

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.

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.

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

On Mon, Oct 24, 2016 at 5:42 PM, Scott Talbert talbert@techie.net wrote:

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, ytubedlg@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](https://bugs.eclipse.org/bugs/show_bug.cgi?id=27201)

     

  [http://mailman.daa.com.au/cgi-bin/pipermail/pygtk/2006-March/011914.html](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-users+unsubscribe@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-users+unsubscribe@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-users+unsubscribe@googlegroups.com.

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

re -post test.py

···

On Wed, Oct 26, 2016 at 2:41 AM, youtubedlg youtubedlg ytubedlg@gmail.com wrote:

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 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.

On Tue, Oct 25, 2016 at 6:35 PM, John Fabiani fabiani.john@gmail.com wrote:

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.

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.

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

On Mon, Oct 24, 2016 at 5:42 PM, Scott Talbert talbert@techie.net wrote:

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, ytubedlg@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](https://bugs.eclipse.org/bugs/show_bug.cgi?id=27201)

     

  [http://mailman.daa.com.au/cgi-bin/pipermail/pygtk/2006-March/011914.html](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-users+unsubscribe@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-users+unsubscribe@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-users+unsubscribe@googlegroups.com.

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

re -post test.py

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*

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.

I see it on GNOME 3 also so it's not just XFCE.

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?

      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:

          27201 – Tree does not remove horizontal scroll bar on collapse

      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-users+unsubscribe@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-users+unsubscribe@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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/to
pic/wxpython-users/B6o6z8qRHD8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
wxpython-users+unsubscribe@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-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.
For more options, visit https://groups.google.com/d/optout.

test.py (1.38 KB)

···

On Wed, Oct 26, 2016 at 4:09 PM, John Fabiani <fabiani.john@gmail.com> wrote:

On Wed, Oct 26, 2016 at 2:41 AM, youtubedlg youtubedlg <ytubedlg@gmail.com > > wrote:

On Tue, Oct 25, 2016 at 6:35 PM, John Fabiani <fabiani.john@gmail.com> >> wrote:

On Mon, Oct 24, 2016 at 5:42 PM, Scott Talbert <talbert@techie.net> >>> wrote:

On Mon, 24 Oct 2016, John Fabiani wrote:

On Sat, Oct 22, 2016 at 4:32 AM, <ytubedlg@gmail.com> wrote: