Is it possible to enter Greek or mathematical symbols as static text
(labels) on a wxPython widget? Ideally, one could enter TeX code, but any
way that works would do.
Rich
···
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Is it possible to enter Greek or mathematical symbols as static text
(labels) on a wxPython widget? Ideally, one could enter TeX code
Can you support having a complete TeX installation? If so, then running TeX and dvipng, then loading that as a StaticBitmap would work ell (similar to what Matplotlib does)
For that matter, does it need to be dynamic? If not, you can just make the PNGs ahead of time.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Can you support having a complete TeX installation?
Chris,
Already do. I do all my serious writing with LaTeX.
If so, then running TeX and dvipng, then loading that as a StaticBitmap
would work ell (similar to what Matplotlib does) For that matter, does it
need to be dynamic? If not, you can just make the PNGs ahead of time.
No, it doesn't need to be dynamic. That's a great idea.
Thanks,
Rich
···
On Mon, 29 Jan 2007, Christopher Barker wrote:
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Run the unicode version of wxPython, create a text control widget that
does 'print repr(tc.GetValue())' when its value changes, and type the
character in (or paste it via the Windows character map application,
charmap). Once you have the repr, pass that value to your wx.StaticText
constructor.
Or, you can run a unicode version of wxPython and the source version of
PyPE, or the Windows unicode version of PyPE; they handle the unicode ->
repr stuff for you (see the repr tab on the bottom).
- Josiah
···
Rich Shepard <rshepard@appl-ecosys.com> wrote:
Is it possible to enter Greek or mathematical symbols as static text
(labels) on a wxPython widget? Ideally, one could enter TeX code, but any
way that works would do.
Is it possible to enter Greek or mathematical symbols as static text
(labels) on a wxPython widget? Ideally, one could enter TeX code, but any
way that works would do.
Rich
You could use Unicode, i think, my french accents, german umlauts and
stuff worked fine...
···
--
Best regards
Florian Mayer
GPG public key: http://florianmayer.fl.funpic.de/name/name.gpg
Jabber: name@jabber.org
ICQ: 446504088
Aim: segfaulthunter
Yahoo: segfaulthunter
IRC: name @ irc.freenode.net
Secondary email: segfaulthunter@gmail.com
You could use Unicode, i think, my french accents, german umlauts and
stuff worked fine...
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
>> Is it possible to enter Greek or mathematical symbols as static
>> text (labels) on a wxPython widget? Ideally, one could enter TeX
>> code, but any way that works would do.
>>
>> Rich
>>
> You could use Unicode, i think, my french accents, german
> umlauts and stuff worked fine...
Unicode of course has Greek (and every other language); it also comes
with vast quantities of math symbols. Chances are that, if it's in
TeX, it's in Unicode.