folgendes funktioniert in der Win shell problemlos:
Code: Alles auswählen
# -*- coding: utf-8 -*-
import sys
import WConio
def printcolor(color,data):
WConio.textcolor(color)
#sys.stdout.write(data)
print (data)
WConio.textcolor(15)
printcolor(14,"hallo, wie gehts? ")
printcolor(12,"mir geht's heute gut.")
c=raw_input('frage')
der Python IDLE kommt folgender Fehler:
Code: Alles auswählen
Traceback (most recent call last):
File "e:/Eigene Dateien/test.py", line 11, in <module>
printcolor(14,"hallo, wie gehts? ")
File "e:/Eigene Dateien/test.py", line 6, in printcolor
WConio.textcolor(color)
File "C:\Python25\lib\site-packages\WConio.py", line 162, in textcolor
bgcolor = gettextinfo()[4] & 0x00F0
error: GetScreenInfo Failed
Edit: - andere baustelle -
wenn ich das ganze mit pyinstaller packe erscheint folgender Hinweis:
Code: Alles auswählen
MSVCR71.dll could not be extracted!