Re: [evince] Problem opening a PDF in evince (using gtk2-bindings on Fedora-14)



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:
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
evince-list gnome org
https://mail.gnome.org/mailman/listinfo/evince-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]