fixes to ppttest.py

This commit is contained in:
Philip Ridout 2013-10-15 20:42:17 +01:00
parent 35ba1c9052
commit eb614bdf38

View File

@ -175,13 +175,7 @@ class PPTViewer(QtGui.QWidget):
int(self.widthEdit.text()), int(self.heightEdit.text())) int(self.widthEdit.text()), int(self.heightEdit.text()))
filename = os.path.normpath(unicode(self.pptEdit.text())).encode('utf-16-le') filename = os.path.normpath(unicode(self.pptEdit.text())).encode('utf-16-le')
folder = unicode(self.folderEdit.text()).replace(u'/', u'\\') folder = unicode(self.folderEdit.text()).replace(u'/', u'\\')
#filename = str(self.pptEdit.text()).replace(u'/', u'\\') self.pptid = self.pptdll.OpenPPT(filename, None, rect, filename.encode('utf-16-le') + folder.encode('utf-16-le'))
#folder = str(self.folderEdit.text()).replace(u'/', u'\\')
print(filename)
print filename, folder
filename = u'C:\\Documents and Settings\\Phill\\Desktop\\Հայաստան.ppt'
preview_path = u'Z:\\Data\\presentations\\Powerpoint Viewer\\Հայաստան.ppt\\slide'
self.pptid = self.pptdll.OpenPPT(filename.encode('utf-16-le'), None, rect, preview_path.encode('utf-16-le'))
#self.pptid = self.pptdll.OpenPPT(filename, None, rect, filename + folder) #self.pptid = self.pptdll.OpenPPT(filename, None, rect, filename + folder)
print u'id: ' + unicode(self.pptid) print u'id: ' + unicode(self.pptid)
if oldid >= 0: if oldid >= 0: