Hi, I'm using wxPython (the latest version) and was wondering how to get rid of the scrollbar on the wx.TextCtrl (multiline) object. I couldn't find anything with Google or the search on the forums. Thanks!

I think you have to use one of the styles (similar to, or maybe in addition to, the one used to make it multiline in the first place: TE_MULTILINE, I think it was).

I'm curious as to how to make them appear only when there is sufficient text for it. I've searched for such styles and haven't found any that work.

Maybe there's another way to do what you want.

To use more than one, try something like this:
wx.TE_MULTILINE | wx.TE_CENTER

I'm not sure which one you need, though, if this will even work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.