Hey,
you need to add the EvView to a ScrollWindow and then add that scrollwindow to whenever you want
On Sun, Mar 31, 2013 at 5:55 AM, Ajay Garg <ajaygargnsit gmail com> wrote:
_______________________________________________Any ideas what I am doing wrong?In addition, when I click anywhere on the window, I get a "Segmentation Fault" core dump.Hi all.When I run the following code, all I see is a blank screen.
###############################################################################################
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()
###############################################################################################
Regards,
Ajay
evince-list mailing list
evince-list gnome org
https://mail.gnome.org/mailman/listinfo/evince-list