2010-05-16 23:21:20 -04:00
|
|
|
__author__="bjschuma"
|
|
|
|
__date__ ="$May 13, 2010 10:37:20 AM$"
|
|
|
|
|
|
|
|
|
2010-05-29 23:18:09 -04:00
|
|
|
__all__ = ["box", "button", "image", "importnode",
|
|
|
|
"label", "menu", "node", "window"]
|
2010-05-16 23:21:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
from ct.call import write
|
|
|
|
global parts
|
|
|
|
parts = dict()
|
|
|
|
|
|
|
|
|
|
|
|
def make(child):
|
|
|
|
global parts
|
|
|
|
name = str(child.nodeName).lower()
|
|
|
|
if (name in parts.keys()) == False:
|
|
|
|
return None
|
|
|
|
node = parts[name](child)
|
|
|
|
if name == "import":
|
|
|
|
return node.part
|
|
|
|
return node
|
|
|
|
|
|
|
|
|
|
|
|
from gtknodes.box import *
|
|
|
|
parts["vbox"] = VBox
|
|
|
|
parts["hbox"] = HBox
|
|
|
|
|
|
|
|
|
2010-05-29 23:18:09 -04:00
|
|
|
from gtknodes.button import *
|
|
|
|
parts["button"] = Button
|
|
|
|
parts["volume"] = VolumeButton
|
|
|
|
|
|
|
|
|
|
|
|
from gtknodes.image import *
|
|
|
|
parts["image"] = Image
|
|
|
|
|
|
|
|
|
2010-05-16 23:21:20 -04:00
|
|
|
from gtknodes.importnode import *
|
|
|
|
parts["import"] = Import
|
|
|
|
|
|
|
|
|
2010-05-29 23:18:09 -04:00
|
|
|
from gtknodes.label import *
|
|
|
|
parts["label"] = Label
|
|
|
|
|
|
|
|
|
2010-05-16 23:21:20 -04:00
|
|
|
from gtknodes.menu import *
|
|
|
|
parts["menubar"] = bar.MenuBar
|
|
|
|
parts["menuitem"] = item.MenuItem
|
|
|
|
parts["menuchangetheme"] = theme.MenuChangeTheme
|
|
|
|
parts["menureloadtheme"] = theme.MenuReloadTheme
|
|
|
|
parts["menuselectsong"] = playback.MenuSelectSong
|
|
|
|
|
|
|
|
|
|
|
|
from gtknodes.window import *
|
|
|
|
parts["window"] = Window
|
|
|
|
parts["scrollwindow"] = ScrolledWindow
|