That did it !!!! :) Thanks a ton !!!
On Mon, Apr 1, 2013 at 8:41 PM, [email protected] <[email protected] > wrote: > 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 <[email protected]> wrote: > >> 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? >> >> >> >> Regards, >> Ajay >> >> _______________________________________________ >> evince-list mailing list >> [email protected] >> https://mail.gnome.org/mailman/listinfo/evince-list >> >> > -- Regards, Ajay
_______________________________________________ evince-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/evince-list
