in Gui i wanna show dimension for area mm2 . How can i Superscript 2 in this case while writing such text in StaticText.Setlabel() method.
Hi,
···
On 10 July 2012 13:19, Prashant Deshmukh wrote:
in Gui i wanna show dimension for area mm2 . How can i Superscript 2 in this
case while writing such text in StaticText.Setlabel() method.
Try with wx.lib.fancytext instead.
--
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
# ------------------------------------------------------------- #
def ask_mailing_list_support(email):
if mention_platform_and_version() and include_sample_app():
send_message(email)
else:
install_malware()
erase_hard_drives()
# ------------------------------------------------------------- #
Or even simpler, use the "superscript 2" character, U+00B2, written in
Python as u'\u00b2', or u'²' if it happens to be in the source
character set.
- Anders
···
On 10 July 2012 13:19, Prashant Deshmukh wrote:
> in Gui i wanna show dimension for area mm2 . How can i Superscript 2
in this
> case while writing such text in StaticText.Setlabel() method.Try with wx.lib.fancytext instead.
in Gui i wanna show dimension for area mm2 . How can i Superscript 2 in this case while writing such text in StaticText.Setlabel() method.
I gave an explanation here:
Py3, but it doesn’t matter
“¹²³”.encode(‘iso-8859-1’).decode(‘cp1252’)
‘¹²³’
“¹²³”.encode(‘cp1252’).decode(‘cp1252’)
‘¹²³’
for c in “¹²³”:
… ‘en: {:20} {:x}’.format(EnglishUniName(c), ord(c))
… ‘fr: {:20} {:x}’.format(FrenchUniName(c), ord(c))
…
‘en: SUPERSCRIPT ONE b9’
‘fr: EXPOSANT UN b9’
‘en: SUPERSCRIPT TWO b2’
‘fr: EXPOSANT DEUX b2’
‘en: SUPERSCRIPT THREE b3’
‘fr: EXPOSANT TROIS b3’
jmf
···
On Tuesday, July 10, 2012 1:19:41 PM UTC+2, Prashant Deshmukh wrote: