Re: Surpressing the vertical scrollbar in a wx.TextCntrl
William Luitje <[email protected]> Sat, 6 Jun 2020 12:53:08 -0700
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CACDBsVWn-c0yAEC5dAMs4gcqcz4pRZb8wo3VgMxH6nJ0TqJmjg@mail.gmail.com> |
Changing the 'For Version' setting to 3.0 gives the correct behavior. Thank you for your quick response! On Sat, Jun 6, 2020 at 3:33 AM Dietmar Schwertberger < [email protected]> wrote: > On 06.06.2020 02:05, William Luitje wrote: > > I recently upgraded to wxPython 3.0.2.0 and a text control which > previously had no vertical scrollbar now has one, which is disabled. There > is a checkbox wxTE_NO_VSCROLL in wxGlade for that control so I checked it > and regenerated the UI but the scrollbar remained. In the generated code > for that control was the expression "style=wx.TE_MULTILINE | > wx.TE_READONLY" so I edited the generated code to "style=wx.TE_MULTILINE > | wx.TE_READONLY | wxTE_NO_VSCROLL" and the scrollbar went away. So it > seems that wxGlade is not generating the requested flag even when the box > is checked. > > Did you change the application property "For version" to 3.0? > > I don't see that flag present in the documentation for wxPython 2.9 so it > seems to be first implemented in 3.0. > > The flag's text in wxGlade should be displayed in blue and the tooltip > help should also state that it's not supported in 2.8. > > Regards, > > Dietmar > _______________________________________________ > wxGlade-general mailing list > wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/wxglade-general > _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general
kiceocbnhkpbheif.png
(image/png, 10.4 KB) - not displayed