示例#1
0
    def __init__(self, *args, **kwargs):
        super(MonitorMain, self).__init__(*args, **kwargs)
        # basic overlay
        self.overlay = DivNode(parent=self)
        self.video = VideoNode(href="base_loop.avi",
                               loop=True,
                               parent=self.overlay,
                               size=(800, 600))
        self.video.play()
        self.topDiv = DivNode(parent=self.overlay,
                              pos=(0, 62),
                              size=(800, 200))
        self.bottomDiv = DivNode(parent=self.overlay,
                                 pos=(0, 363),
                                 size=(800, 200))
        ImageNode(href="rillen_70.png", parent=self.bottomDiv, size=(800, 300))
        ImageNode(href="rillen_70.png", parent=self.topDiv, size=(800, 300))
        ImageNode(href="schwarze_maske.png", parent=self.overlay)

        # top
        self.top = ContentViewer(parent=self.topDiv)

        # bottom
        self.bottom = ContentViewer(parent=self.bottomDiv)
        self._cwars = CWars(opacity=0, parent=self.bottom)
        self.bottom.addContent(self._cwars)
        print "running MonitorMain"
        g_log.trace(g_log.ERROR, "running monitormain now")
        self.bottom.nextContent()
示例#2
0
 def __init__(self, text1="", text2="", text3="", *args, **kwargs):
     super(TextContent, self).__init__(*args, **kwargs)
     self.__whie = ImageNode(parent=self,
                             pos=(0, 0),
                             size=(800, 200),
                             href="hinweise/kasten_60.png",
                             opacity=0.6)
     self.__topText = WordsNode(parent=self,
                                text=text1,
                                font='arial',
                                color="000000",
                                pos=(30, 10),
                                opacity=1,
                                fontsize=40)
     self.__middleText = WordsNode(parent=self,
                                   text=text2,
                                   font='arial',
                                   color="000000",
                                   pos=(30, 80),
                                   opacity=1,
                                   fontsize=40)
     self.__bottomText = WordsNode(parent=self,
                                   text=text3,
                                   font='arial',
                                   color="000000",
                                   pos=(30, 140),
                                   opacity=1,
                                   fontsize=30)
示例#3
0
 def __init__(self, callback=None, *args, **kwargs):
     super(CWars, self).__init__(*args, **kwargs)
     self._video = VideoNode(parent=self,
                             href="werbung/c-wars/c-wars-trailer.mpg",
                             size=(800, 200))
     self._logo = ImageNode(parent=self,
                            href="werbung/c-wars/c-wars.tif",
                            pos=(66, 58))
     self._endCallback = callback
     self.__where_past = ImageNode(parent=self,
                                   href="werbung/c-wars/where_past.tif",
                                   pos=(48, 148))
     self.__meets_future = ImageNode(parent=self,
                                     href="werbung/c-wars/meets_future.tif",
                                     pos=(248, 148))
     self.__www_cwars_com = ImageNode(
         parent=self,
         href="werbung/c-wars/www_c-wars_com.tif",
         pos=(470, 152))