wx.HSCROLL TextCtrl under OSX

Hi everyone

I am having trouble to set wx.HSCROLL on a wx.TextCtrl in Mac OSX. I am using the line below to set the style and the scroll bar appears but no scroll is available in the system

style = (wx.TE_MULTILINE | wx.TE_READONLY |wx.TE_RICH2 | wx.TE_DONTWRAP | wx.HSCROLL)

I can post pictures if this would help.

My configuration includes the latest version of wxPython and Mac OSX 10.4. I have no problem with the same code on Windows or Linux.

Any help is appreciated. Thanks in advance

Paulo Nuin

Paulo Nuin <nuin <at> genedrift.org> writes:

I am having trouble to set wx.HSCROLL on a wx.TextCtrl in Mac OSX.

I notice that the python IDLE also exhibits that problem.
Typing a long line fails to make a horizontal scroll bar appear,
yet when you type in many lines the vertical scroll bar will appear.

7stud wrote:

Paulo Nuin <nuin <at> genedrift.org> writes:

I am having trouble to set wx.HSCROLL on a wx.TextCtrl in Mac OSX.

I notice that the python IDLE also exhibits that problem. Typing a long line fails to make a horizontal scroll bar appear, yet when you type in many lines the vertical scroll bar will appear.

I talked to Stefan about this issue this morning. He said that it is nothing that wx does, but that the native widget is just not responding to the scroll messages properly. (Or something like that.)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

(BTW: Next time, please open a new thread.)

Paulo Nuin wrote:

I am trying to install wxPython 2.8 on Fedora Core 6 with Python
2.5.1

... release candidate 1! ...

from source.
[...]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/__init__.py",
line 45, in <module>
    from wx._core import *
  File
"/usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/_core.py",
line 4, in <module>
    import _core_
ImportError: libwx_gtk2d_aui-2.8.so.0: cannot open shared object
file: No such file or directory

Is it anything that I might be doing wrong?

- Did you try to locate the library manually? Where is it?
- Look at the output of ldconfig -v (as root) and see if it finds
your lib. If not, check that the library path is
in "/etc/ld.so.conf". If not, add it (should be /usr/local/lib if
you haven't changed the path) and re-run ldconfig -v.

Regards,

Björn

···

--
BOFH excuse #380:

Operators killed when huge stack of backup tapes fell over.

Paulo Nuin wrote:

Bjoern Schliessmann wrote:

I am trying to install wxPython 2.8 on Fedora Core 6 with Python
2.5.1
    

... release candidate 1! ...
  

Yep. I tried with 2.4.4 and it also failed.

I'd use 2.5.0, it's the latest stable.

Will do that. I used one command to find it but could not find at
first. I tried running ldconfig but it did not seem to add the
paths correctly. Thanks a lot. I will try your suggestions and be
back if any other error arises.

Happy hunting! :slight_smile:

Regards,

Björn

···

--
BOFH excuse #428:

Firmware update in the coffee machine