Path: csiph.com!weretis.net!feeder4.news.weretis.net!news1.dtag.de!feedme.news.telefonica.de!telefonica.de!diesel.cu.mi.it!bofh.it!tornado.fastwebnet.it!53ab2750!not-for-mail Newsgroups: it.comp.lang.python X-Mozilla-News-Host: news://news.fastwebnet.it:119 From: Smith Subject: Gtk3 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 21 Message-ID: Date: Tue, 17 May 2016 15:09:07 +0200 NNTP-Posting-Host: 93.56.77.67 X-Complaints-To: newsmaster@fastweb.it X-Trace: tornado.fastwebnet.it 1463490547 93.56.77.67 (Tue, 17 May 2016 15:09:07 CEST) NNTP-Posting-Date: Tue, 17 May 2016 15:09:07 CEST Xref: csiph.com it.comp.lang.python:7659 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 Gtk.main() AttributeError: module 'gi.overrides.Gtk' has no attribute 'main'