Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.python > #7659
| Newsgroups | it.comp.lang.python |
|---|---|
| From | Smith <smith@smith.it> |
| Subject | Gtk3 |
| Message-ID | <TJE_y.45330$pt.41748@tornado.fastwebnet.it> (permalink) |
| Date | 2016-05-17 15:09 +0200 |
Ciao,
vorrei capire perchè non riesco ad utilizzare gt3 in Python3.
Mi restituisce questo messaggio d'errore.
GRazie
import gi
gi.require_version('Gtk','3.0')
from gi.overrides import Gtk
win = Gtk.Window()
win.connect("delete-event",Gtk.main_quit)
win.show_all()
Gtk.main()
** (gtk-prova.py:11675): WARNING **: Couldn't connect to accessibility
bus: Failed to connect to socket /tmp/dbus-AmrZgbkpR2: Connection refused
Traceback (most recent call last):
File "/home/pippo/PycharmProjects/Progetto1/gtk-prova.py", line 8, in
<module>
Gtk.main()
AttributeError: module 'gi.overrides.Gtk' has no attribute 'main'
Back to it.comp.lang.python | Previous | Next — Next in thread | Find similar
Gtk3 Smith <smith@smith.it> - 2016-05-17 15:09 +0200
Re: Gtk3 Smith <smith@smith.it> - 2016-05-17 15:27 +0200
Re: Gtk3 Alessandro Pellizzari <shuriken@amiran.it> - 2016-05-17 14:41 +0100
Re: Gtk3 Smith <smith@smith.it> - 2016-05-17 16:25 +0200
Re: Gtk3 Smith <smith@smith.it> - 2016-05-18 09:07 +0200
Re: Gtk3 Max_Adamo <maxadamo@usenet.cnntp.org> - 2016-05-18 19:48 +0000
Re: Gtk3 Max_Adamo <maxadamo@usenet.cnntp.org> - 2016-05-18 19:52 +0000
Re: Gtk3 Max_Adamo <maxadamo@usenet.cnntp.org> - 2016-05-18 19:55 +0000
Re: Gtk3 Smith <smith@smith.it> - 2016-05-19 08:24 +0200
csiph-web