Fxy
May 18th, 2013, 12:09 AM
HI everyone
Basically I am trying to create a basic python program that will contain a few buttons that when clicked will take you to specified hardcoded urls. Heres the code that I have written...
#!/usr/bin/python
import gtk
import pygtk
import webbrowser
window = gtk.Window()
window.set_title("Portal")
button = gtk.LinkButton("http://example.iana.org/", label="Button001")
window.add(button)
window.show_all()
gtk.main()
My problem is that whenever my app loads, I click on the button but get the error shown below.
PythonLinks.py:14: GtkWarning: Unable to show 'http://example.iana.org/': Operation not supported gtk.main()
I have tried running my app on 3 different machines. One running debian, another running ubuntu and finally a macbook. All three systems seem to produce the same error for some reason ?? If anyone could help me with this that would be totally awesome. Thanks in advance.
Basically I am trying to create a basic python program that will contain a few buttons that when clicked will take you to specified hardcoded urls. Heres the code that I have written...
#!/usr/bin/python
import gtk
import pygtk
import webbrowser
window = gtk.Window()
window.set_title("Portal")
button = gtk.LinkButton("http://example.iana.org/", label="Button001")
window.add(button)
window.show_all()
gtk.main()
My problem is that whenever my app loads, I click on the button but get the error shown below.
PythonLinks.py:14: GtkWarning: Unable to show 'http://example.iana.org/': Operation not supported gtk.main()
I have tried running my app on 3 different machines. One running debian, another running ubuntu and finally a macbook. All three systems seem to produce the same error for some reason ?? If anyone could help me with this that would be totally awesome. Thanks in advance.