fix another unicode bug, add shortcut to options

This commit is contained in:
Damien Elmes 2009-01-05 17:07:17 +09:00
parent 3e9f0d0443
commit 05df5fb4e0
2 changed files with 3 additions and 3 deletions

View file

@ -641,11 +641,11 @@ class FactEdit(QTextEdit):
def _retrieveURL(self, url, ext):
filecontents = urllib2.urlopen(url).read()
(fd, name) = tempfile.mkstemp(suffix=".%s" % ext)
(fd, name) = tempfile.mkstemp(suffix=".%s" % ext.encode("ascii"))
file = os.fdopen(fd, "wb")
file.write(filecontents)
file.flush()
return name
return unicode(name, sys.getfilesystemencoding())
def simplifyHTML(self, html):
"Remove all style information and P tags."

View file

@ -249,7 +249,7 @@
<item>
<widget class="QPushButton" name="optionsButton" >
<property name="text" >
<string>Options>></string>
<string>&amp;Options>></string>
</property>
<property name="checkable" >
<bool>true</bool>