Latex and wxpython

Hi Everybody,

thank you for your answers! In fact, I asked because I was expecting wxpython
to be able to handle latex more or less like matplotlib, but I couldn't make
it work.

For now I'll probably stay with the 'easy' method: combine an image and an
edit box, as suggested by Stef. But as soon as I have some time I'll try to
look into Fahri suggestion.

Cheers

Andrea

···

On Friday 05 December 2008 01:14:05 pm Stef Mientki wrote:

Andrea Canidio wrote:
> Hi everybody!
>
> I'm very new to python and wxpython (one month of experience with python
> and one week with wxpython). However, I managed to put together all the
> pieces of info I need to write and run my script, except for one:
>
> Can you use latex in wxpython? Can I set the window frame or a StaticText
> bot to, let's say, r'$\gamma_{max}$'?
>
> If I do something like this:
>
> self.lblname = wx.StaticText(self, -1, r'$\gamma_{max}$',wx.Point(20,60))
>
> I get $\gamma_{max}$ and not its latex equivalent.

You can combine a edit box with an image,
on every character you type,
call mimetex with a fixed image name
and then load the image.
I've done this in Delphi,
and it works quit well.

cheers,
Stef

> Cheers!
>
> Andrea
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users