[evince] Problem opening a PDF in evince (using gtk2-bindings on Fedora-14)
- From: Ajay Garg <ajaygargnsit gmail com>
- To: evince-list <evince-list gnome org>
- Subject: [evince] Problem opening a PDF in evince (using gtk2-bindings on Fedora-14)
- Date: Sun, 31 Mar 2013 15:25:19 +0530
Hi all.
When I run the following code, all I see is a blank screen.
In addition, when I click anywhere on the window, I get a "Segmentation Fault" core dump.
###############################################################################################
import gtk
import evince
evince.init()
_view = evince.View()
_model = evince.DocumentModel()
try:
_document = evince.document_factory_get_document('file:///home/ajay/Downloads/Ajay_Garg_Resume.pdf')
except Exception, e:
print e
else:
_model.set_document(_document)
_view.set_model(_model)
_view.show()
wn = gtk.Window()
wn.add(_view)
_view.show()
wn.maximize()
wn.show_all()
_view.show()
gtk.main()
###############################################################################################
Any ideas what I am doing wrong?
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]