Code: Alles auswählen
#!/usr/bin/python2
# -*- coding: utf8 -*
import gtk
import threading
class Splash(threading.Thread):
def __init__(self):
gtk.gdk.threads_init()
threading.Thread.__init__(self)
def run(self):
builder = gtk.Builder()
builder.add_from_file("ui/splash.glade")
wsplash = builder.get_object("wsplash")
wsplash.show()
gtk.gdk.threads_enter();
gtk.main()
gtk.gdk.threads_leave ();
def hide_splash(*args):
gtk.main_quit()
Code: Alles auswählen
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python2: xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Code: Alles auswählen
splash = Splash()
splash.start()
Kann mir da jemand weiterhelfen?