Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 374 → Rev 376

/branches/BR-0.4/basico/widgets/wdg_splash.py
42,16 → 42,16
gi.require_version('Gtk', '3.0')
 
# from gi.repository import Gtk, GdkPixbuf, GObject, Pango, Gdk
import time
# ~ import time
from gi.repository import Gtk, Gdk
from threading import Thread
# ~ from threading import Thread
from os.path import exists
from basico.core.mod_log import get_logger
 
 
class Splash(Thread):
class Splash():
def __init__(self, title, width=400, height=250, font=16, font_weight='normal', font_color='000000', background_color='ffffff', background_image=None):
Thread.__init__(self)
# ~ Thread.__init__(self)
self.log = get_logger(__class__.__name__)
self.title = title
self.width = width
97,6 → 97,7
self.font_weight,
self.title))
box.pack_start(lbl_title, False, True, 0)
self.run()
 
def run(self):
# Show the splash screen