Splash screen kinda works now
This commit is contained in:
parent
f42fc2d1db
commit
12a512b33e
|
@ -44,7 +44,7 @@ class SplashScr():
|
|||
pos_x = self.spinner.get_x()
|
||||
pos_x = pos_x + int (self.spinner.get_width() * 1.1)
|
||||
self.message.set_position(pos_x, 0)
|
||||
self.message.set_text("dslkfjlds")
|
||||
self.message.set_text("Loading...")
|
||||
self.main_group.add(self.message)
|
||||
|
||||
self.detail = clutter.Label()
|
||||
|
@ -69,6 +69,7 @@ class SplashScr():
|
|||
def remove(self):
|
||||
self.stage.remove(self.main_group)
|
||||
self.stage.remove(self.backdrop)
|
||||
self.spinner.stop()
|
||||
|
||||
|
||||
def set_msg(self, msg):
|
||||
|
|
8
gloss.py
8
gloss.py
|
@ -3,7 +3,8 @@ import clutter
|
|||
#import gobject
|
||||
import pygtk
|
||||
import gtk
|
||||
import threading
|
||||
import gobject
|
||||
#import threading
|
||||
from SplashScr import SplashScr
|
||||
from Menu import Menu
|
||||
from MenuMgr import MenuMgr
|
||||
|
@ -36,6 +37,7 @@ class MainApp:
|
|||
self.splashScreen.display()
|
||||
#self.timer = threading.Timer(1, self.loadGloss)
|
||||
#self.timer.start()
|
||||
gobject.timeout_add(500, self.loadGloss)
|
||||
|
||||
def loadGloss(self):
|
||||
|
||||
|
@ -106,6 +108,8 @@ class MainApp:
|
|||
self.stage.connect('key-press-event', self.menuMgr.on_key_press_event)
|
||||
self.menu1.display()
|
||||
self.menu1.selectFirst(True)
|
||||
|
||||
return False
|
||||
#print self.menuMgr.get_selector_bar().get_abs_position()
|
||||
#self.menuMgr.get_selector_bar().set_spinner(True)
|
||||
|
||||
|
@ -126,7 +130,7 @@ def main (args):
|
|||
app = MainApp()
|
||||
#thread.start_new_thread(app.run, (None,))
|
||||
#thread.start_new_thread(app.loadGloss, (None,))
|
||||
app.loadGloss()
|
||||
#app.loadGloss()
|
||||
app.run()
|
||||
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Loading…
Reference in New Issue