How can I print the unicode box drawing characters in python:
print u'\u2500'
print u'\u2501'
print u'\u2502'
print u'\u2503'
print u'\u2504'
Traceback (most recent call last):
File "\test.py", line 3, in ?
print u'\u2500'
File "C:\Python24\lib\encodings\cp1252.py", line 18, in encode
> on windows using python 2.4. ???
yes, as a matter of fact I am.
Did not feel the need to switch to 2.5 yet.
I'm gonna give this a try, but it requires me to dig up 2.5 versions
of the libraries i am using.
(one of them didn't at the time and that is why I stuck to 2.4)
--
http://mail.python.org
> on windows using python 2.4. ???
I was on Python 2.4.3 and it gave me that problem.
I upgraded to 2.4.4 and it works.
thanks for the tip.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
while checking out Python 3, I read that all text strings are now
natively Unicode.
In the Python language reference (http://docs.python.org/3.0/reference/
lexical_analysis.html) I read that I can show Unicode character in
several ways.
"\u" supposedly allows me to specify the Unicode chara
>Hmm this works for me,
>it's a self compiled version:
>~ $ python3
>Python 3.0 (r30:67503, Dec 29 2008, 21:35:15)
>[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
You are running on Linux. Mine is on Windows.
Anyone else have this issue on Windows ?
--
http://mail.python.org/mailman/listinfo/pytho
>As Benjamin Kaplin said, Windows terminals use the old cp1252 character
>set, which cannot display the euro sign. You'll either have to run it in
> something more modern like the cygwin rxvt terminal, or output some
>other way, such as through a GUI.
>With the standard console, I get the same. B
Now that I know the problem, I found the following on Google.
Windows uses codepages to display different character sets. (http://
en.wikipedia.org/wiki/Code_page)
The Windows chcp command allows you to change the character set from
the original 437 set.
When you type on the command line: chcp
chcp 1252 does allow me to print the EURO sign. Thanks for pointing
that out.
However, it does not show me some ALL Unicode characters. Very
frustrating.
I was hoping to find something that allows me to print any Unicode
character on the console.
--
http://mail.python.org/mailman/listinfo/python-li
this is alink explaining how to add new fonts to the command line
(e.g. Lucida Sans Unicode)
http://phatness.com/node/1643
--
http://mail.python.org/mailman/listinfo/python-list
when I call "import wx" from the interactive console, it works (i.e.
it doesn't complain).
But when I call the same from a script, it complains that it can not
find the wx module.
works for interactive
Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.
I ran the script from a command line, so it is not a file association
thing.
I do have multiple versions of Python installed on that machine. I
will uninstall them all and install a single version from clean.
Thanks for the suggestion
--
http://mail.python.org/mailman/listinfo/python-list
ok, sorry for the long wait.
I tried this on both my work (XP) and home PC (Vista64) and they are
both consistent.
I had both Python2.6 and Python 3.0 installed.
wxPython didn't like that.
As soon as I uninstalled Python3.0, my wxPython started running again.
Must be some kind of registry thing.
Hi,
I recently figured out a problem that came up with the latest versions
of Python and cx_Freeze. I thought I post it here so that it might be
usefull to someone.
The problem was that, when I switched to Python 2.6.x and
cx_Freeze-4.0.1.win32-py2.6.msi, the executables that were produced
ran per
Hi,
We are looking to use Python on an embedded Linux ARM system.
What I gather from googling the subject is that it is not that
straight forward (a fair amount of patching & hacking).
Nobody out there that has done it claims it is easy, which makes me
worried.
I haven't seen a description on port
OpenGL newbie alert!!!
Do I need to do anything special to use OpenGL capabilities of my
graphics card ?
I have the impression PyOpenG is using the Windows emulation.
when I execute the following code:
print "glGetString - GL_VENDOR: ", glGetString
(GL_VENDOR)
print "glGetString
these are the imports I use:
from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GLU import *
--
http://mail.python.org/mailman/listinfo/python-list
that works. Thx
below is the output for my system:
gluGetString - GLU_VERSION: 1.2.2.0 Microsoft
Corporation
gluGetString - GLU_EXTENSIONS: GL_EXT_bgra
glGetString - GL_VENDOR: NVIDIA Corporation
glGetString - GL_RENDERER: GeForce 9
17 matches
Mail list logo