Hi, dear all,
how can I make scrollbars working with a big grid?
With the appended code, the horizontal scrollbar is visible but ‘too long’ (it exceeds the visible area and can’t be moved), the vertical is missing at all.
I’m working on Windows with Python 2.7 and WxPython 2.8.
(I’ve tried FlexGridSizer and GridBagSizer, too, but there the situation is even worse: no scrollbars at all…)
Thanks for all help from
merlem
Forenfrage_scoll.py (1.17 KB)
I’d bet you have a sizer problem such that the bottom of the vertical scroll bar and the entire horizontal scroll bar are hidden and not visible.
David
···
On Jan 22, 2017 12:32 PM, “merl em” merl.em@yandex.com wrote:
Hi, dear all,
how can I make scrollbars working with a big grid?
With the appended code, the horizontal scrollbar is visible but ‘too long’ (it exceeds the visible area and can’t be moved), the vertical is missing at all.
I’m working on Windows with Python 2.7 and WxPython 2.8.
(I’ve tried FlexGridSizer and GridBagSizer, too, but there the situation is even worse: no scrollbars at all…)
Thanks for all help from
merlem
–
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 .
merl_em
January 23, 2017, 12:26pm
3
Hi, David,
that may easily be… but I can’t solve that problem, I can’t even find it. To me, it seems everything okay. What is going wrong, where is the problem located?
Thanks for all help,
merlem
···
23.01.2017, 02:35, “David Woods” david@badgerchildhoodcancer.org :
I’d bet you have a sizer problem such that the bottom of the vertical scroll bar and the entire horizontal scroll bar are hidden and not visible.
David
–
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 .
Obviously, it is a sizer problem.
If one runs the attached code as it is, scrollbars appear and work.
If one uncomments the tree lines for the secondsizer and comments out ‘self.SetSizer(sizer)’, all scrollbars vanish.
But if I need scrollbars in a subordniated panel… what can I do then? (And… should it really behave like this, or looks it a bit like a bug?)
Any help would be appreciated.
merlem
ScrollbarDemonstration.py (1.16 KB)
···
23.01.2017, 02:35, “David Woods” david@badgerchildhoodcancer.org :
I’d bet you have a sizer problem such that the bottom of the vertical scroll bar and the entire horizontal scroll bar are hidden and not visible.
David
On Jan 22, 2017 12:32 PM, “merl em” merl.em@yandex.com wrote:
Hi, dear all,
how can I make scrollbars working with a big grid?
With the appended code, the horizontal scrollbar is visible but ‘too long’ (it exceeds the visible area and can’t be moved), the vertical is missing at all.
I’m working on Windows with Python 2.7 and WxPython 2.8.
(I’ve tried FlexGridSizer and GridBagSizer, too, but there the situation is even worse: no scrollbars at all…)
Thanks for all help from
merlem
–
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 .
DavidW
January 24, 2017, 11:56pm
5
Add “self.SetAutoLayout(True)” to your MainPanel.init ()
method.
David
···
On 01/24/2017 10:18 AM, merl em wrote:
Obviously, it is a sizer problem.
If one runs the attached code as it is, scrollbars appear and
work.
If one uncomments the tree lines for the secondsizer and
comments out ‘self.SetSizer(sizer)’, all scrollbars vanish.
But if I need scrollbars in a subordniated panel... what can
I do then? (And… should it really behave like this, or looks
it a bit like a bug?)
Any help would be appreciated.
merlem
23.01.2017, 02:35, "David Woods"
:
I'd bet you have a sizer problem such that the bottom of
the vertical scroll bar and the entire horizontal scroll bar
are hidden and not visible.
David
On Jan 22, 2017 12:32 PM, “merl em” < >
wrote:
–
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](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](https://groups.google.com/d/optout).
david@badgerchildhoodcancer.org merl.em@yandex.com
Hi, dear all,
how can I make scrollbars working with a big grid?
With the appended code, the horizontal scrollbar is
visible but ‘too long’ (it exceeds the visible area and
can’t be moved), the vertical is missing at all.
I'm working on Windows with Python 2.7 and WxPython
2.8.
(I've tried FlexGridSizer and GridBagSizer, too, but
there the situation is even worse: no scrollbars at
all…)
Thanks for all help from
merlem
–
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](https://groups.google.com/d/optout).
Thanks for the advice! I did so, but unfortunaltely could detect no difference between the behaviour without and with the setting. Still the scrollbars are only there in the version with only one sizer, but vanish as soon as I insert the second one.
merlem
···
25.01.2017, 00:56, “David Woods” transana@gmail.com :
Add “self.SetAutoLayout(True)” to your MainPanel.init () method.
David
On 01/24/2017 10:18 AM, merl em wrote:
Obviously, it is a sizer problem.
If one runs the attached code as it is, scrollbars appear and work.
If one uncomments the tree lines for the secondsizer and comments out ‘self.SetSizer(sizer)’, all scrollbars vanish.
But if I need scrollbars in a subordniated panel… what can I do then? (And… should it really behave like this, or looks it a bit like a bug?)
Any help would be appreciated.
merlem
23.01.2017, 02:35, “David Woods” david@badgerchildhoodcancer.org :
I’d bet you have a sizer problem such that the bottom of the vertical scroll bar and the entire horizontal scroll bar are hidden and not visible.
David
On Jan 22, 2017 12:32 PM, “merl em” merl.em@yandex.com wrote:
Hi, dear all,
how can I make scrollbars working with a big grid?
With the appended code, the horizontal scrollbar is visible but ‘too long’ (it exceeds the visible area and can’t be moved), the vertical is missing at all.
I’m working on Windows with Python 2.7 and WxPython 2.8.
(I’ve tried FlexGridSizer and GridBagSizer, too, but there the situation is even worse: no scrollbars at all…)
Thanks for all help from
merlem
–
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 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 .