Nathan smith wrote:
>
> I'm using a wx.textCtrl and trying to write powers and fractions. For
> instance, I would like to write 3 superscript 2 for 3 squared, or 3
> over 5 for fractions, without necessarily writing 3/5.
>
> I did a look around and found a question related to this to do with a
> multiline Rich Text Widget but I'm hoping to only work with a single
> line textCtrl.
Not in the general case, no. Unicode does have glyphs for superscript
and subscript 1 through 9, and fractions for 1/2, 1/3, 2/3, 1/4, 3/4,
1/8, 3/8, 5/8, and 7/8, but that's it. If you're looking for general
case math symbols, then you absolutely need rich text.
--
Tim Roberts,
ti...@probo.com
Providenza & Boekelheide, Inc.