All pastes #729129 Raw Edit

Unbenannt

public text v1 · immutable
·published 2007-10-07 17:58 UTC
rendered paste body
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 30, in apport_excepthook
    import apport.report, apport.fileutils
  File "/var/lib/python-support/python2.5/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/var/lib/python-support/python2.5/apport/report.py", line 17, in <module>
    import xml.dom, xml.dom.minidom
  File "/home/martin/py/xml.py", line 1, in <module>
    from xml.dom.ext import Print
ImportError: No module named dom.ext

Original exception was:
Traceback (most recent call last):
  File "./gtk.py", line 4, in <module>
    from gtk import *
  File "/home/martin/py/gtk.py", line 6, in <module>
    window = GtkWindow(WINDOW_TOPLEVEL)
NameError: name 'GtkWindow' is not defined


################### Source:
#!/usr/bin/env python
# gtk testing

from gtk import *

window = GtkWindow(WINDOW_TOPLEVEL)
window.connect("destroy", mainquit)
window.setborderwidth(10)

button = GtkButton("Hello World")
window.add(button)

window.show_all()
mainloop()