Hello,

new problem: I'm hand-coding a small application and using the dabo editor. 
The code contains some unicode literals, all written as u"äöü...ß". My system 
character set is UTF8, the code starts with

#!/usr/bin/env python
# -*- coding: utf-8 -*-

I can run the application from a terminal without problems, and I can save it 
in the dabo editor. But if I try to run it from there (F7 or Run/Run Script), 
I get this:
Traceback (most recent call last):
 
File 
"/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dMenuItem.py",
 
line 55, in __onWxHit
 self.raiseEvent(dEvents.Hit, evt)
File 
"/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dPemMixin.py",
 
line 926, in raiseEvent
 super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File 
"/usr/lib/python2.5/site-packages/Dabo-0.8.4-py2.5.egg/dabo/lib/eventMixin.py", 
line 92, in raiseEvent
 bindingFunction(event)
 File "/home/sib/svn_src/dabo_trunk/ide/Editor.py", line 855, in onRunScript
 f.write(txt)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 
1048: ordinal not in range(128)

I'm using Gentoo Linux and the Dabo version is

Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.8.4; Revision ~4477
UI Version: 2.8.7.1 on wxGTK (gtk2)

I searched the tracker and the mail archive, but found nothing really similar 
to this.

BTW another small editor issue: I write a long statement into two lines by 
putting a line break inside parentheses, like this:

 bts.append(dabo.ui.dButton(pg, Caption="&Bearbeiten", 
                            OnHit=self.edit), 0, border=5)

The second line isn't automatically indented at all, and if I indent using 
spaces the indentation seems to change if I use another editor or viewer with 
the same code. Indentation with tabs doesn't bring the start of the second 
line where I want to put it (and where Eric and IDLE put it automatically). 
What's the right way to do this?

Thank you,
Sibylle

-- 
Dr. Sibylle Koczian


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to