evilded777 opened this issue on Mar 16, 2003 ยท 4 posts
evilded777 posted Sun, 16 March 2003 at 8:17 AM
I just want to permanently map a button on my main buttons script and I always get a null character error, even though my line looks exactly like every other line in the script. HELP!! This should be easy, but I'm boning it up somehow. e.d.
ockham posted Sun, 16 March 2003 at 10:48 AM
That null character error has something to do with Python's insistence on compiling everything into a PYC file. I haven't seen it on the MainButtons, but I have seen it on more complicated files. Try using a different editor for MainButtons.py, and be sure the editor is set for pure ASCII (unformatted) text. Notepad is good for that purpose. If you're going to do a significant amount of Python writing, you should get a "programmer's editor" like Kedit or Codewright.
evilded777 posted Sun, 16 March 2003 at 2:21 PM
thanks again Ock, you're the best. e.d.
smokingbevel posted Thu, 10 April 2003 at 5:14 AM
(perhaps we may assume that this is painfully obvious)
When obtaining the full implementation from the main python resource location, it may be possible to obtain and/or utilize the IDLE tool, which is a fairly useful program designed with python source editing in mind.
With installation ver 2.2.2, which is not necessarily known to be fully supported by the most recent poser implementation, an included IDLE might be found in the installation tools subdirectory.
Note:
*response applied due to personal dislike of notepad.exe
*experience limited to span of two days experimentation of python
-smokingbevel