Re: small graphical question

Tim Roberts <[email protected]> Tue, 9 Feb 2021 18:15:01 -0800
Newsgroups gmane.comp.python.wxpython
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
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, [email protected]
Providenza & Boekelheide, Inc.


-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/cbabac5b-597b-6cb9-4758-f4d8d8c739e0%40probo.com.
smime.p7s (application/pkcs7-signature, 3.3 KB) - not displayed