diff options
author | Nat <Nat@localhost.localdomain> | 2007-02-17 23:54:56 (GMT) |
---|---|---|
committer | Nat <Nat@localhost.localdomain> | 2007-02-17 23:54:56 (GMT) |
commit | fa4e168fa370d1e66c367e1218d836fdabe22d7e (patch) | |
tree | b57b0a243af65338d1c36c737ab56161f2855af8 /Welcome.py | |
parent | f31a8dd22a05bc6587ae7636ae6aab6dacce8c3c (diff) |
Welcome screen
Diffstat (limited to 'Welcome.py')
-rw-r--r-- | Welcome.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Welcome.py b/Welcome.py new file mode 100644 index 0000000..56910a3 --- /dev/null +++ b/Welcome.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python +import pygtk +pygtk.require( '2.0' ) +import gtk + +import Config +from Util.ThemeWidgets import * + +class Welcome(gtk.EventBox): + + def __init__(self): + gtk.EventBox.__init__(self) + + self.draw() + self.show_all() + + def draw(self): + + actVBox = RoundVBox(fillcolor = Config.WS_BCK_COLOR, bordercolor = Config.WS_BCK_COLOR, radius = Config.PANEL_RADIUS) + actHBox = gtk.HBox() + + for activity in ['mini','edit','type','synth']: + actBtnBox = RoundVBox(fillcolor = Config.WS_PANEL_COLOR, bordercolor = Config.WS_BCK_COLOR, radius = Config.PANEL_RADIUS) + actBtnBox.set_size_request(200,200) + actBtnBox.set_border_width(Config.PANEL_SPACING) + actBtn = ImageButton(Config.IMAGE_ROOT + activity +'Tam.png') + actBtnBox.pack_start(actBtn,True,False,0) + actHBox.pack_start(actBtnBox,True,False,0) + + title = gtk.Image() + title.set_from_file(Config.IMAGE_ROOT + 'TamTam.png') + + actVBox.pack_start(actHBox,False,False, 100) + actVBox.pack_start(title,False,False, 30) + self.add(actVBox) + +if __name__ == "__main__": + win = gtk.Window() + wc = Welcome() + win.add(wc) + win.show() + #start the gtk event loop + gtk.main() + +
\ No newline at end of file |