hello guys, please, I need help. I am new to pygtk and python and in my .py file I am getting error: gtkwarning: gdk_property_change: assertion 'window != NULL' failed
this error occurs when I right click on textview and select cut/paste/copy. What am I doing wrong? thank you in advance. my xaa.py code looks like: import sys import traceback import pygtk pygtk.require("2.0") import gtk import gobject class jednoduchy_textovy_prohlizec (): def __init__(self): self.okno = gtk.Window() self.okno.set_title("TextovĂ˝ editor") self.okno.set_border_width(10) # Editor self.textovy_buffer = gtk.TextBuffer() self.textovy_prohlizec = gtk.TextView(self.textovy_buffer) self.posuvnikove_okno = gtk.ScrolledWindow() self.posuvnikove_okno.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.posuvnikove_okno.add_with_viewport(self.textovy_prohlizec) self.vbox = gtk.VBox(False, 5) self.vbox.pack_end(self.posuvnikove_okno) self.okno.add(self.vbox) self.okno.show_all() self.okno.connect("destroy", gtk.main_quit) if __name__ == "__main__": aplikace = jednoduchy_textovy_prohlizec() gtk.main()
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/