Ejemplo n.º 1
0
 def _createArea(self):
     #        print dir(mygui)
     self.statictext = render_engine.Gui.createWidgetT(
         "StaticText", "StaticText", mygui.IntCoord(0, 0, 91, 91),
         mygui.Align(mygui.ALIGN_VSTRETCH), "Main")
     self.statictext.setTextColour(mygui.Colour(0.0, 0.0, 0.0, 1.0))
     #self.statictext.setCaption(self.getContent())
     self.statictext.setNeedMouseFocus(False)
Ejemplo n.º 2
0
 def _createStaticText(self):
     self.widget = render_engine.Gui.createWidgetT(
         "StaticText", "StaticTextBack", mygui.IntCoord(0, 0, 91, 91),
         mygui.Align(mygui.ALIGN_VSTRETCH), "Main")
     self.widget.setVisible(False)
     self.widget.setTextColour(mygui.Colour(0.0, 0.0, 0.0, 1.0))
     #self.widget.setCaption(self.getContent())
     self.widget.setNeedMouseFocus(False)
Ejemplo n.º 3
0
 def _createEditText(self):
     """Create widget to edit text value
     """
     self.__viewer.widget = render_engine.Gui.createWidgetT(
         "Edit", "Edit", mygui.IntCoord(0, 0, 91, 91),
         mygui.Align(mygui.ALIGN_VSTRETCH), "Main")
     self.__viewer.widget.setVisible(False)
     self.__viewer.widget.setTextColour(mygui.Colour(0.0, 0.0, 0.0, 1.0))
     self.__viewer.widget.setEditMultiLine(True)