Subversion Repositories basico

Compare Revisions

Ignore whitespace Rev 375 → Rev 376

/branches/BR-0.4/basico/basico.py
43,10 → 43,10
Basico class
"""
 
self.setup_splash()
self.setup_environment()
self.setup_logging()
self.setup_services()
self.setup_splash()
 
 
def get_splash(self):
55,7 → 55,7
 
def setup_splash(self):
self.splash = Splash(title="Basico\n0.4", font='Roboto Slab 18', font_weight='bold', font_color="#FFFFFF", background_image=FILE['SPLASH'])
self.splash.start()
# ~ self.splash.start()
 
def setup_environment(self):
"""
/branches/BR-0.4/basico/services/srv_gui.py
103,12 → 103,12
"""
Let GUI service start
"""
# ~ GObject.threads_init()
GObject.threads_init()
self.uiapp = UIApp(self.app)
self.log.debug("Setting up GUI")
window = self.get_window()
# ~ splash = self.app.get_splash()
# ~ splash.start()
splash = self.app.get_splash()
splash.show()
self.uiapp.run()
 
 
/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